add method

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

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

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

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

Implementation

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