currentYear property

int currentYear
final

Implementation

final currentYear = DateTime.now().year;