createFromAsset static method
Future<AudioPool>
createFromAsset({
- required String path,
- required int maxPlayers,
- AudioCache? audioCache,
- int minPlayers = 1,
Creates an AudioPool instance with the asset from the given path
.
Implementation
static Future<AudioPool> createFromAsset({
required String path,
required int maxPlayers,
AudioCache? audioCache,
int minPlayers = 1,
}) async {
return create(
source: AssetSource(path),
audioCache: audioCache,
minPlayers: minPlayers,
maxPlayers: maxPlayers,
);
}