instance property

KnotapiFlutterPlatform get instance

Gets the current instance of KnotapiFlutterPlatform.

Implementation

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

Sets the platform-specific implementation of KnotapiFlutterPlatform.

This must be called by platform-specific implementations when they register themselves. The provided instance must extend KnotapiFlutterPlatform and pass the verification check.

Implementation

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