copyWith method

PlannerTime copyWith({
  1. int? day,
  2. int? endDay,
  3. int? hour,
  4. int? minutes,
  5. int? duration,
  6. bool? allDay,
})

Returns a copy with the given fields replaced; omitted fields are kept.

Implementation

PlannerTime copyWith(
        {int? day,
        int? endDay,
        int? hour,
        int? minutes,
        int? duration,
        bool? allDay}) =>
    PlannerTime(
      day: day ?? this.day,
      endDay: endDay ?? this.endDay,
      hour: hour ?? this.hour,
      minutes: minutes ?? this.minutes,
      duration: duration ?? this.duration,
      allDay: allDay ?? this.allDay,
    );