copyWith method

TimeRange copyWith({
  1. ValueGetter<TimeOfDay>? start,
  2. ValueGetter<TimeOfDay>? end,
})

Implementation

TimeRange copyWith({
  ValueGetter<TimeOfDay>? start,
  ValueGetter<TimeOfDay>? end,
}) {
  return TimeRange(
    start: start == null ? this.start : start(),
    end: end == null ? this.end : end(),
  );
}