replacing method

DesignTimeOfDay replacing({
  1. int? hour,
  2. int? minute,
  3. int? second,
})

This time with the given parts changed.

Implementation

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