copyWith method

Time copyWith({
  1. int? hour,
  2. int? minute,
  3. int? second,
  4. int? millisecond,
  5. int? microsecond,
})

Creates a new Time from this one by updating individual properties.

Implementation

Time copyWith(
        {int? hour,
        int? minute,
        int? second,
        int? millisecond,
        int? microsecond}) =>
    Time(hour ?? this.hour, minute ?? this.minute, second ?? this.second,
        millisecond ?? this.millisecond, microsecond ?? this.microsecond);