isToday property

bool isToday

Returns true if given date is today

Implementation

bool get isToday {
  final now = DateTime.now();
  final today = DateTime(now.year, now.month, now.day);

  return DateTime(year, month, day) == today;
}