instance property
AudioServicePlatform
instance
The default instance of AudioServicePlatform to use.
Defaults to MethodChannelAudioService.
Implementation
static AudioServicePlatform get instance => _instance;
Platform-specific plugins should set this with their own platform-specific class that extends AudioServicePlatform when they register themselves.
Implementation
//
// TODO: rewrite when https://github.com/flutter/flutter/issues/43368 is resolved.
static set instance(AudioServicePlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}