instance property

SoundplayerPlatform get instance

The default instance of SoundplayerPlatform to use.

Defaults to MethodChannelSoundplayer.

Implementation

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

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

Implementation

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