currentYear top-level property

int currentYear
final

Implementation

final int currentYear = now.year;