operator - method

Time operator -(
  1. Time other
)

Implementation

Time operator -(Time other) {
  if (other.inSeconds >= inSeconds) {
    return const Time(hour: 0);
  }

  return Time.fromSeconds(inSeconds - other.inSeconds);
}