MethodChannelBlackholeVpn class
An implementation of BlackholeVpnPlatform that uses method channels.
- Implemented types
Constructors
Properties
- eventStatusChange → EventChannel
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getVpnStatusStream(
) → Stream< bool> -
Returns a stream of vpn status changes.
override
-
isActive(
) → Future< bool> -
Returns whether the blackhole vpn is currently active.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runVpnService(
List< String> apps) → Future<bool> -
Requests permission from user then starts vpn service
override
-
stopVpnService(
) → Future< void> -
If Blackhole Vpn is active, stops it.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited