isSameYear property
bool
isSameYear
Indicates whether the DateTime object belongs to the same year as the current date and time.
Implementation
bool get isSameYear {
return DateTime.now().year == year;
}
Indicates whether the DateTime object belongs to the same year as the current date and time.
bool get isSameYear {
return DateTime.now().year == year;
}