playPooledPath method

Future<StopFunction?> playPooledPath(
  1. String path, {
  2. String? key,
  3. double? volume,
})

Play a path using pooling, resolving the path with the channel’s current loader (respects changeSource(...)).

  • key defaults to path; override to alias multiple paths to one pool.
  • volume defaults to the channel’s current volume.

Implementation

Future<StopFunction?> playPooledPath(
    String path, {
      String? key,
      double? volume,
    }) async {
  final src = resolveSource(path);
  return playPooled(key ?? path, src, volume: volume);
}