instance property

SecurityModulePlatform get instance

The default instance of SecurityModulePlatform to use.

Defaults to MethodChannelSecurityModule.

Implementation

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

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

Implementation

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