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