dart add 1 year to date code example
Example: add years to date dart
DateTime now = new DateTime.now();
DateTime tenYearsLater = DateTime(now.year + 10, now.month, now.day);
DateTime now = new DateTime.now();
DateTime tenYearsLater = DateTime(now.year + 10, now.month, now.day);