instance property

The default instance of EasyChromecastPluginPlatform to use.

Defaults to MethodChannelEasyChromecastPlugin.

Implementation

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

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

Implementation

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