instance property

The default instance of PermissionManagerPlatform to use.

Defaults to MethodChannelPermissionManager.

Implementation

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

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

Implementation

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