copyWith method

ClockTime copyWith({
  1. int? hour,
  2. int? minute,
  3. int? second,
})

Implementation

ClockTime copyWith({
  int? hour,
  int? minute,
  int? second,
}) =>
    ClockTime(
      hour: hour ?? this.hour,
      minute: minute ?? this.minute,
      second: second ?? this.second,
    );