isToday property
bool
isToday
Checks whether it is the current day
Implementation
bool get isToday {
if (this == null) {
return false;
} else {
final now = DateTime.now();
final today = DateTime(now.year, now.month, now.day);
final dateCheck = DateTime(year, month, day);
return today == dateCheck;
}
}