instance property

The default instance of PluginFlutterElginPlatform to use.

Defaults to MethodChannelPluginFlutterElgin.

Implementation

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

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

Implementation

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