instance property

The default instance of PermissionGuardPlatform to use.

Defaults to MethodChannelPermissionGuard.

Implementation

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

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

Implementation

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