diffTime function Null safety

int diffTime(
  1. {required GpsTime startTimeA,
  2. required GpsTime? endTimeA,
  3. required GpsTime timeB}
)

Like diffIntTime, but with parameters provided in GpsTime rather than directly as integers.

Implementation

int diffTime(
    {required GpsTime startTimeA,
    required GpsTime? endTimeA,
    required GpsTime timeB}) {
  return diffIntTime(
    startTimeA: startTimeA.secondsSinceEpoch,
    endTimeA: endTimeA?.secondsSinceEpoch,
    timeB: timeB.secondsSinceEpoch,
  );
}