instance property

AudioPlusPlatform get instance

The default instance of AudioPlusPlatform to use.

Defaults to MethodChannelAudioPlus.

Implementation

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

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

Implementation

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