onCharacteristicReceived property

Stream<OnCharacteristicReceivedEvent> get onCharacteristicReceived

Implementation

Stream<OnCharacteristicReceivedEvent> get onCharacteristicReceived {
  return FlutterBluePlus._methodStream.stream
      .where((m) => m.method == "OnCharacteristicReceived")
      .map((m) => m.arguments)
      .map((args) => BmCharacteristicData.fromMap(args))
      .map((p) => OnCharacteristicReceivedEvent(p));
}