instance property

FlutterV2rayPlatform get instance

The default instance of FlutterV2rayPlatform to use.

Defaults to MethodChannelFlutterV2ray.

Implementation

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

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

Implementation

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