curYearAsInt top-level property Null safety

int curYearAsInt

Returns current year as an int (ex. 2019).

Implementation

int get curYearAsInt {
  return DateTime.now().year;
}