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