CelebrationFeedback constructor

const CelebrationFeedback({
  1. bool enableHaptics = true,
  2. bool enableSound = false,
  3. BuiltinSound? builtinSound,
  4. String? soundAssetPath,
})

Creates feedback settings.

Provide at most one of builtinSound or soundAssetPath. Both are ignored when enableSound is false.

Implementation

const CelebrationFeedback({
  this.enableHaptics = true,
  this.enableSound = false,
  this.builtinSound,
  this.soundAssetPath,
});