instance property

IgplayerPlatform get instance

The default instance of IgplayerPlatform to use.

Defaults to MethodChannelIgplayer.

Implementation

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

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

Implementation

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