instance property

FlutterPluginPlatform get instance

The default instance of FlutterPluginPlatform to use.

Defaults to MethodChannelFlutterPlugin.

Implementation

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

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

Implementation

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