isToday method

bool isToday()

Checks if the date is today.

Implementation

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