CelebrationFeedback.customAsset constructor

CelebrationFeedback.customAsset(
  1. String soundAssetPath, {
  2. bool enableHaptics = true,
  3. bool enableSound = true,
})

Your own audio file (path from your app's flutter: assets: list).

Implementation

factory CelebrationFeedback.customAsset(
  String soundAssetPath, {
  bool enableHaptics = true,
  bool enableSound = true,
}) {
  return CelebrationFeedback(
    enableHaptics: enableHaptics,
    enableSound: enableSound,
    soundAssetPath: soundAssetPath,
  );
}