instance property

ScreenPrivacyPlatform get instance

The default instance of ScreenPrivacyPlatform to use.

Defaults to MethodChannelScreenPrivacy.

Implementation

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

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

Implementation

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