isBefore method
Returns true
if this time is earlier than other
.
Example
final t1 = LocalTime(9, 5, 3);
final t2 = LocalTime(14, 8, 22, 70);
print(t1.isBefore(t2)); // true
print(t2.isBefore(t1)); // false
Implementation
bool isBefore(LocalTime other) => compareTo(other).isLessThan(0);