isToday method
Checks if the date is today.
Implementation
bool isToday() {
final now = DateTime.now();
return year == now.year && month == now.month && day == now.day;
}
Checks if the date is today.
bool isToday() {
final now = DateTime.now();
return year == now.year && month == now.month && day == now.day;
}