instance property

FlutterchainPlatform get instance

The default instance of FlutterchainPlatform to use.

Defaults to MethodChannelFlutterchain.

Implementation

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

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

Implementation

static set instance(FlutterchainPlatform instance) {
  PlatformInterface.verify(instance, _token);
  _instance = instance;
}