DateTime. ahora Addyears Dart
DateTime now = new DateTime.now();
DateTime tenYearsLater = DateTime(now.year + 10, now.month, now.day);
Joyful Code
DateTime now = new DateTime.now();
DateTime tenYearsLater = DateTime(now.year + 10, now.month, now.day);
var date = DateTime.now();
var newDate = DateTime(date.year, date.month - 1, date.day);