instance property

KnotapiFlutterPlatform get instance

The default instance of KnotapiFlutterPlatform to use.

Defaults to MethodChannelKnotapiFlutter.

Implementation

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

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

Implementation

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