isBetween method
Checks if this TimeOfDay is between the start and end TimeOfDay (inclusive start, exclusive end).
Implementation
bool isBetween(TimeOfDay being, TimeOfDay end) {
final thisMinutes = hour * 60 + minute;
final startMinutes = being.hour * 60 + being.minute;
final endMinutes = end.hour * 60 + end.minute;
return thisMinutes >= startMinutes && thisMinutes < endMinutes;
}