copyWith method
Returns a copy of this with the updated units of time.
LocalTime(12).copyWith(minute: 30); // 12:30
Implementation
@useResult LocalTime copyWith({int? hour, int? minute, int? second, int? millisecond, int? microsecond}) => LocalTime(
hour ?? this.hour,
minute ?? this.minute,
second ?? this.second,
millisecond ?? this.millisecond,
microsecond ?? this.microsecond,
);