copyWith method
Creates a copy of this range with the given fields replaced.
Implementation
TimeRange copyWith({
ValueGetter<TimeOfDay>? start,
ValueGetter<TimeOfDay>? end,
}) {
return TimeRange(
start: start == null ? this.start : start(),
end: end == null ? this.end : end(),
);
}