instance property

VpnDetectorPlatform get instance

The default instance of VpnDetectorPlatform to use.

Defaults to MethodChannelVpnDetector.

Implementation

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

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

Implementation

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