onStateChanged property

Stream<FlutterVpnState> onStateChanged

Receive state change from VPN service.

Can only be listened once. If have more than one subscription, only the last subscription can receive events.

Implementation

static Stream<FlutterVpnState> get onStateChanged =>
    FlutterVpnPlatform.instance.onStateChanged;