instance property

The default instance of AndroidAudioPluginPlatform to use.

Defaults to MethodChannelAndroidAudioPlugin.

Implementation

static AndroidAudioPluginPlatform get instance => _instance;
set instance (AndroidAudioPluginPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends AndroidAudioPluginPlatform when they register themselves.

Implementation

static set instance(AndroidAudioPluginPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}