WireGuardFlutterInterface class abstract
The platform interface for WireGuard Flutter.
Constructors
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 setter
-
vpnStageSnapshot
→ Stream<
VpnStage> -
Stream of VPN stage changes.
no setter
Methods
-
checkVpnPermission(
) → Future< bool> - Checks for VPN permission.
-
initialize(
{required String interfaceName, String? vpnName, String? iosAppGroup}) → Future< void> - Initializes the VPN engine.
-
isConnected(
) → Future< bool> - Checks if the VPN is currently connected.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshStage(
) → Future< void> - Refreshes the VPN stage/status.
-
stage(
) → Future< VpnStage> - Gets the current VPN stage.
-
startVpn(
{required String serverAddress, required String wgQuickConfig, required String providerBundleIdentifier}) → Future< void> - Starts the VPN tunnel.
-
stopVpn(
) → Future< void> - Stops the VPN tunnel.
-
toString(
) → String -
A string representation of this object.
inherited
-
trafficStats(
) → Future< Map< String, dynamic> > - Gets the latest traffic statistics.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited