instance property

The default instance of JustAudioPlatform to use.

Defaults to MethodChannelJustAudio.

Implementation

static JustAudioPlatform get instance => _instance;
void instance=(JustAudioPlatform instance)

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

Implementation

// TODO(amirh): Extract common platform interface logic.
// https://github.com/flutter/flutter/issues/43368
static set instance(JustAudioPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}