minusMinutes method

LocalTime minusMinutes(
  1. int minutes
)

Returns a new LocalTime with the given duration subtracted.

If the result is negative, it wraps backward from the end of the day.

Example

final t = LocalTime(0, 15);
final prev = t.minus(Duration(minutes: 30)); // 23:45 of previous cycle

Implementation

LocalTime minusMinutes(int minutes) => minus(Duration(minutes: minutes));