paySound method
Implementation
void paySound(String assetName) {
try {
player
.play(
AssetSource(
assetName,
),
)
.then((value) => null);
} catch (_) {}
}
void paySound(String assetName) {
try {
player
.play(
AssetSource(
assetName,
),
)
.then((value) => null);
} catch (_) {}
}