isAfter method

bool isAfter(
  1. LocalTime other
)

Returns true if this time is later than other.

Example

final t1 = LocalTime(9, 5, 3);
final t2 = LocalTime(14, 8, 22, 70);
print(t1.isAfter(t2)); // false
print(t2.isAfter(t1)); // true

Implementation

bool isAfter(LocalTime other) => compareTo(other).isGreaterThan(0);