isToday static method

bool isToday(
  1. DateTime date
)

Implementation

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