nextYear static method

DateTime nextYear(
  1. DateTime d
)

Returns same date in the next year.

Implementation

static DateTime nextYear(DateTime d) => addYears(d, 1);