instance property

AudioRouterPlatform get instance

The default instance of AudioRouterPlatform to use.

Defaults to MethodChannelAudioRouter.

Implementation

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

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

Implementation

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