addYears method

DateTime addYears(
  1. int years
)

Implementation

DateTime addYears(int years) => add(Duration(days: years * 365));