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