onStatusChanged property

Stream<Map<String, dynamic>> get onStatusChanged

Stream of VPN status updates

Emits a map with the following keys:

  • "status": String (Stopped, Starting, Started, Stopping)
  • "statusCode": int (0=Stopped, 1=Starting, 2=Started, 3=Stopping)

Implementation

Stream<Map<String, dynamic>> get onStatusChanged {
  return FlutterSingboxPlatform.instance.onStatusChanged;
}