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