copyWith method

NmSchedule copyWith({
  1. String? frequency,
  2. String? timezone,
  3. String? windowStart,
  4. String? windowEnd,
  5. int? jitterMinutes,
  6. int? staleAfterHours,
})

A copy with the given fields replaced.

Implementation

NmSchedule copyWith({String? frequency, String? timezone, String? windowStart, String? windowEnd, int? jitterMinutes, int? staleAfterHours}) => NmSchedule(
  frequency: frequency ?? this.frequency,
  timezone: timezone ?? this.timezone,
  windowStart: windowStart ?? this.windowStart,
  windowEnd: windowEnd ?? this.windowEnd,
  jitterMinutes: jitterMinutes ?? this.jitterMinutes,
  staleAfterHours: staleAfterHours ?? this.staleAfterHours,
);