isToday property

bool get isToday

Return true if the date is today

Implementation

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