isToday property

bool get isToday

return true if the date is today

Implementation

bool get isToday {
  if (this == null) return false;
  final now = DateTime.now();
  return this!.year == now.year &&
      this!.month == now.month &&
      this!.day == now.day;
}