instance property

AudioTonePlatform get instance

The default instance of AudioTonePlatform to use.

Defaults to MethodChannelAudioTone.

Implementation

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

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

Implementation

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