isToday property
bool
get
isToday
Returns true if given date is today
Implementation
bool get isToday {
final DateTime now = DateTime.now();
final DateTime today = DateTime(now.year, now.month, now.day);
return DateTime(year, month, day) == today;
}