instance property
WireguardVpnPlatform
get
instance
The default instance of WireguardVpnPlatform to use.
Defaults to MethodChannelWireguardVpn.
Implementation
static WireguardVpnPlatform get instance => _instance;
set
instance
(WireguardVpnPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends WireguardVpnPlatform when they register themselves.
Implementation
static set instance(WireguardVpnPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}