instance property

The default instance of YoutubePlayerPluginPlatform to use.

Defaults to MethodChannelYoutubePlayerPlugin.

Implementation

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

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

Implementation

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