isToday property

bool get isToday

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;
}