isBefore method

bool isBefore(
  1. Time time, {
  2. bool orSame = false,
})

Is the Time before another time

Implementation

bool isBefore(Time time, {bool orSame = false}) {
  return orSame ? this <= time : this < time;
}