play method

  1. @override
Future<void> play(
  1. String path
)
override

Play a Specific SFX Path (pooled)

No-op if path is empty. Resolves using the channel's current source builder (assets by default, but can be files/urls via changeSource).

Implementation

@override
Future<void> play(String path) async {
  if (path.isEmpty) return;
  final src = resolveSource(path); // provided by BaseAudioChannel
  await playPooled(path, src, volume: _storage.sfxVolume); // from PooledPlayback
}