instance property

The default instance of FlutterVpnServicePlatform to use.

Defaults to MethodChannelFlutterVpnService.

Implementation

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

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

Implementation

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