copyWith method

CelebrationFeedback copyWith({
  1. bool? enableHaptics,
  2. bool? enableSound,
  3. BuiltinSound? builtinSound,
  4. String? soundAssetPath,
})

Returns a copy with the given fields replaced.

Implementation

CelebrationFeedback copyWith({
  bool? enableHaptics,
  bool? enableSound,
  BuiltinSound? builtinSound,
  String? soundAssetPath,
}) {
  return CelebrationFeedback(
    enableHaptics: enableHaptics ?? this.enableHaptics,
    enableSound: enableSound ?? this.enableSound,
    builtinSound: builtinSound ?? this.builtinSound,
    soundAssetPath: soundAssetPath ?? this.soundAssetPath,
  );
}