subtract method

  1. @useResult
LocalTime subtract(
  1. Duration duration
)

Returns a copy of this with the duration subtracted, wrapping around midnight.

LocalTime(12).minus(Duration(hours: -1, minutes: 1)); // 13:01

LocalTime(4).minus(Duration(hours: 6)); // 22:00

Implementation

@useResult LocalTime subtract(Duration duration) => LocalTime._(_native.subtract(duration));