lastValue property

List<int> lastValue

this variable is updated:

  • anytime read() is called
  • anytime write() is called
  • anytime a notification arrives (if subscribed)
  • when the device is disconnected it is cleared

Implementation

List<int> get lastValue {
  String key = "$serviceUuid:$characteristicUuid";
  return FlutterBluePlus._lastChrs[remoteId]?[key] ?? [];
}