play method
Future<void>
play(
- Source source, {
- double? volume,
- double? balance,
- AudioContext? ctx,
- Duration? position,
- PlayerMode? mode,
- dynamic beforePlay(
- MiniPlayer
inherited
play override handle before start function
Implementation
@override
Future<void> play(Source source,
{double? volume,
double? balance,
AudioContext? ctx,
Duration? position,
PlayerMode? mode,
Function(MiniPlayer)? beforePlay}) async {
if (beforePlay != null) await beforePlay.call(this);
return super.play(
source,
volume: volume,
ctx: ctx,
position: position,
mode: mode,
);
}