copyWith method

AiroHapticSettings copyWith({
  1. bool? enabled,
  2. AiroHapticStrength? strength,
  3. double? globalScale,
  4. bool? respectSystemSettings,
  5. bool? reducedMotion,
  6. bool? debugLogs,
  7. Duration? minThrottleDuration,
  8. Duration? coalesceInterval,
})

Implementation

AiroHapticSettings copyWith({
  bool? enabled,
  AiroHapticStrength? strength,
  double? globalScale,
  bool? respectSystemSettings,
  bool? reducedMotion,
  bool? debugLogs,
  Duration? minThrottleDuration,
  Duration? coalesceInterval,
}) {
  return AiroHapticSettings(
    enabled: enabled ?? this.enabled,
    strength: strength ?? this.strength,
    globalScale: globalScale ?? this.globalScale,
    respectSystemSettings: respectSystemSettings ?? this.respectSystemSettings,
    reducedMotion: reducedMotion ?? this.reducedMotion,
    debugLogs: debugLogs ?? this.debugLogs,
    minThrottleDuration: minThrottleDuration ?? this.minThrottleDuration,
    coalesceInterval: coalesceInterval ?? this.coalesceInterval,
  );
}