plus method

  1. @useResult
LocalTime plus({
  1. int hours = 0,
  2. int minutes = 0,
  3. int seconds = 0,
  4. int milliseconds = 0,
  5. int microseconds = 0,
})

Returns a copy of this with the time units added, wrapping around midnight.

LocalTime(12).plus(hours: -1, minutes: 1); // 11:01

LocalTime(20).plus(hours: 8); // 04:00

Implementation

@useResult LocalTime plus({int hours = 0, int minutes = 0, int seconds = 0, int milliseconds = 0, int microseconds = 0}) =>
  LocalTime._(_native.plus(
    hours: hours,
    minutes: minutes,
    seconds: seconds,
    milliseconds: milliseconds,
    microseconds: microseconds,
  ));