instance property

The default instance of ScreenshotGuardPlatform to use.

Defaults to MethodChannelScreenshotGuard.

Implementation

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

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

Implementation

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