isToday static method

bool isToday(
  1. DateTime other
)

Implementation

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