isToday property

bool get isToday

Checks if the date is today

Implementation

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