isBefore method

bool isBefore(
  1. TimeOfDay other
)
  • true if before other, false otherwise.

Implementation

bool isBefore(
  TimeOfDay other,
) =>
    hour < other.hour || (hour == other.hour && minute < other.minute);