BlackholeVpnPlatform class

Inheritance
  • Object
  • PlatformInterface
  • BlackholeVpnPlatform
Implementers

Constructors

BlackholeVpnPlatform()
Constructs a BlackholeVpnPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getVpnStatusStream() Stream<bool>
Returns a stream of vpn status changes.
isActive() Future<bool>
Returns whether the blackhole vpn is currently active.
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
stopVpnService() Future<void>
If Blackhole Vpn is active, stops it.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance BlackholeVpnPlatform
The current instance of BlackholeVpnPlatform to use.
getter/setter pair