isToday property
bool
get
isToday
Checks if the date is today.
Example usage:
final date = DateTime.now();
print(date.isToday); // true
Implementation
bool get isToday {
final nowDate = DateTime.now();
return year == nowDate.year && month == nowDate.month && day == nowDate.day;
}