instance property

The default instance of YtFlutterMusicapiPlatform to use.

Defaults to MethodChannelYtFlutterMusicapi.

Implementation

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

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

Implementation

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