copyWith method

AvailableTime copyWith({
  1. FixedList<String>? daysOfWeek,
  2. Time? availableStartTime,
  3. Time? availableEndTime,
})

Creates a copy of the AvailableTime instance and allows for non-destructive mutation.

Implementation

AvailableTime copyWith({
  FixedList<String>? daysOfWeek,
  Time? availableStartTime,
  Time? availableEndTime,
}) =>
    AvailableTime(
      daysOfWeek: daysOfWeek ?? this.daysOfWeek,
      availableStartTime: availableStartTime ?? this.availableStartTime,
      availableEndTime: availableEndTime ?? this.availableEndTime,
    );