plusHours method

LocalTime plusHours(
  1. int hours
)

Returns a new LocalTime with the given duration added.

If the result exceeds 24 hours, it wraps around from midnight.

Example

final t = LocalTime(23, 30);
final next = t.plus(Duration(minutes: 90)); // 01:00

Implementation

LocalTime plusHours(int hours) => plus(Duration(hours: hours));