copyWith method
- bool? enableHaptics,
- bool? enableSound,
- BuiltinSound? builtinSound,
- 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,
);
}