instance property

FlutterSdkPlatform get instance

The default instance of FlutterSdkPlatform to use.

Defaults to MethodChannelFlutterSdk.

Implementation

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

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

Implementation

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