copyWith method
Implementation
TimeOfDay copyWith({
ValueGetter<int>? hour,
ValueGetter<int>? minute,
ValueGetter<int>? second,
}) {
return TimeOfDay(
hour: hour == null ? this.hour : hour(),
minute: minute == null ? this.minute : minute(),
second: second == null ? this.second : second(),
);
}