instance property

BeepSoundPlatform get instance

The default instance of BeepSoundPlatform to use.

Defaults to MethodChannelBeepSound.

Implementation

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

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

Implementation

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