isToday static method

bool isToday(
  1. DateTime dateTime
)

是否为今天.

Implementation

static bool isToday(DateTime dateTime) {
  return dateTime.day == DateTime.now().day;
}