onConnectionStateChanged property

Stream<OnConnectionStateChangedEvent> get onConnectionStateChanged

Implementation

Stream<OnConnectionStateChangedEvent> get onConnectionStateChanged {
  return FlutterBluePlus._methodStream.stream
      .where((m) => m.method == "OnConnectionStateChanged")
      .map((m) => m.arguments)
      .map((args) => BmConnectionStateResponse.fromMap(args))
      .map((p) => OnConnectionStateChangedEvent(p));
}