play method
Future<void>
play(})
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,
);
}