instance property

OnAudioQueryPlatform get instance

The default instance of OnAudioQueryPlatform to use.

Defaults to MethodChannelOnAudioQuery.

Implementation

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

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

Implementation

static set instance(OnAudioQueryPlatform instance) {
  PlatformInterface.verify(instance, _token);
  _instance = instance;
}