nextYear method

DateTime nextYear()

Create a new date with next year values.

Implementation

DateTime nextYear() => _copyWith(year: year + 1);