compareTime function Null safety

TimeComparisonResult compareTime(
  1. GpsTime timeA,
  2. GpsTime timeB
)

Compares two time values and returns the result.

If timeA is considered before timeB, the result will be TimeComparisonResult.before, etc.

Implementation

TimeComparisonResult compareTime(GpsTime timeA, GpsTime timeB) {
  return compareIntRepresentationTime(
      timeA.secondsSinceEpoch, timeB.secondsSinceEpoch);
}