nextYear property

DateTime get nextYear

Returns DateTime object of Next year.

final checkDate =
     DateTime.parse('2023-09-16 20:18:00.123456789z');
checkDate.nextYear;         // 16-09-2024

This will not consider time Parameters.

Implementation

DateTime get nextYear => superAdd(years: 1);