isInThisYear property

bool get isInThisYear

checks isInThisYear

Implementation

bool get isInThisYear => this != null && this!.year == DateTime.now().year;