isToday property
bool
get
isToday
Check if this
is same day as today
Implementation
bool get isToday {
var now = DateTime.now();
return day == now.day && month == now.month && year == now.year;
}
Check if this
is same day as today
bool get isToday {
var now = DateTime.now();
return day == now.day && month == now.month && year == now.year;
}