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