isBefore method

bool isBefore(
  1. TimeOfDay other
)

Whether this TimeOfDay occurs earlier than other.

Does not account for day or sub-minute differences. This means that "00:00" of the next day is still before "23:00" of this day.

Implementation

bool isBefore(TimeOfDay other) => compareTo(other) < 0;