nextYear property

DateTime nextYear

Returns DateTime with next year

Implementation

DateTime get nextYear => DateTime(
    year + 1, month, day, hour, minute, second, millisecond, microsecond);