instance property

AttestrPluginPlatform get instance

The default instance of AttestrPluginPlatform to use.

Defaults to MethodChannelAttestrPlugin.

Implementation

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

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

Implementation

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