isToday method
Implementation
bool isToday() {
final now = DateTime.now();
return year == now.year && month == now.month && day == now.day;
}
bool isToday() {
final now = DateTime.now();
return year == now.year && month == now.month && day == now.day;
}