instance property

The default instance of ScreenSecurityKitPlatform to use.

Defaults to MethodChannelScreenSecurityKit. Platform-specific implementations should set this to their own class.

Implementation

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

Sets the platform-specific implementation of ScreenSecurityKitPlatform.

Verifies the token to ensure only valid implementations are used.

Implementation

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