isThisMimute method

bool isThisMimute([
  1. DateTime? dateTime
])

True if the specified time or the current time is the same minute.

dateTime: Time to compare.

Implementation

bool isThisMimute([DateTime? dateTime]) {
  dateTime ??= DateTime.now();
  return year == dateTime.year &&
      month == dateTime.month &&
      day == dateTime.day &&
      hour == dateTime.hour &&
      minute == dateTime.minute;
}