plus method

  1. @useResult
OffsetTime 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 units of time added, wrapping around midnight.

OffsetTime(Offset(8), 12).plus(hours: -1); // 11:00+08:00

OffsetTime(Offset(8), 20).plus(hours: 8); // 04:00+08:00

Implementation

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