copyWith method

Repeat copyWith({
  1. Duration? boundsDuration,
  2. Range? boundsRange,
  3. Period? boundsPeriod,
  4. int? count,
  5. int? countMax,
  6. num? duration,
  7. num? durationMax,
  8. String? durationUnit,
  9. int? frequency,
  10. int? frequencyMax,
  11. num? period,
  12. num? periodMax,
  13. String? periodUnit,
  14. FixedList<String>? dayOfWeek,
  15. FixedList<Time>? timeOfDay,
  16. FixedList<String>? when,
  17. int? offset,
})

Creates a deep copy of this Repeat instance.

Implementation

Repeat copyWith({
  Duration? boundsDuration,
  Range? boundsRange,
  Period? boundsPeriod,
  int? count,
  int? countMax,
  num? duration,
  num? durationMax,
  String? durationUnit,
  int? frequency,
  int? frequencyMax,
  num? period,
  num? periodMax,
  String? periodUnit,
  FixedList<String>? dayOfWeek,
  FixedList<Time>? timeOfDay,
  FixedList<String>? when,
  int? offset,
}) =>
    Repeat(
      boundsDuration: boundsDuration ?? this.boundsDuration,
      boundsRange: boundsRange ?? this.boundsRange,
      boundsPeriod: boundsPeriod ?? this.boundsPeriod,
      count: count ?? this.count,
      countMax: countMax ?? this.countMax,
      duration: duration ?? this.duration,
      durationMax: durationMax ?? this.durationMax,
      durationUnit: durationUnit ?? this.durationUnit,
      frequency: frequency ?? this.frequency,
      frequencyMax: frequencyMax ?? this.frequencyMax,
      period: period ?? this.period,
      periodMax: periodMax ?? this.periodMax,
      periodUnit: periodUnit ?? this.periodUnit,
      dayOfWeek: dayOfWeek ?? this.dayOfWeek,
      timeOfDay: timeOfDay ?? this.timeOfDay,
      when: when ?? this.when,
      offset: offset ?? this.offset,
    );