onStateChanged property

  1. @override
Stream<IkeV2State> get onStateChanged
override

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

@override
Stream<IkeV2State> get onStateChanged =>
    eventChannel.receiveBroadcastStream().map((e) => IkeV2State.values[e]);