WireGuardFlutterMethodChannel class

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trafficSnapshot Stream<Map<String, dynamic>>
Stream of traffic statistics.
no setteroverride
vpnStageSnapshot Stream<VpnStage>
Stream of VPN stage changes.
no setteroverride

Methods

checkVpnPermission() Future<bool>
Checks for VPN permission.
override
initialize({required String interfaceName, String? vpnName, String? iosAppGroup}) Future<void>
Initializes the VPN engine.
override
isConnected() Future<bool>
Checks if the VPN is currently connected.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshStage() Future<void>
Refreshes the VPN stage/status.
override
stage() Future<VpnStage>
Gets the current VPN stage.
override
startVpn({required String serverAddress, required String wgQuickConfig, required String providerBundleIdentifier}) Future<void>
Starts the VPN tunnel.
override
stopVpn() Future<void>
Stops the VPN tunnel.
override
toString() String
A string representation of this object.
inherited
trafficStats() Future<Map<String, dynamic>>
Gets the latest traffic statistics.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited