isToday property

bool isToday

Returns true if this is same as the date of today. This doesn't account for time.

Implementation

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