instance property
FlutterRadioPlayerPlatform
get
instance
The default instance of FlutterRadioPlayerPlatform to use.
Defaults to MethodChannelFlutterRadioPlayer.
Implementation
static FlutterRadioPlayerPlatform get instance => _instance;
set
instance
(FlutterRadioPlayerPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends FlutterRadioPlayerPlatform when they register themselves.
Implementation
static set instance(FlutterRadioPlayerPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}