play method
void
play(})
Implementation
void play(
String url, {
bool startAutomatically = true,
bool isLocal = false,
String? title,
String? artist,
String? album,
String? imageUrl,
Duration? startFrom,
}) {
_registerMethodCallHandler();
_invokeNativeMethod(
_nativeMethodPlay,
arguments: <String, dynamic>{
_nativeMethodPlayArgUrl: url,
_nativeMethodPlayArgTitle: title,
_nativeMethodPlayArgArtist: artist,
_nativeMethodPlayArgAlbum: album,
_nativeMethodPlayArgImageUrl: imageUrl,
_nativeMethodPlayArgStartAutomatically: startAutomatically,
_nativeMethodPlayArgStartFromMillis: startFrom != null ? startFrom.inMilliseconds : 0,
_nativeMethodPlayArgIsLocal: isLocal,
},
);
}