lastValue property
this variable is updated:
- anytime
read()
is called - anytime
write()
is called - when the device is disconnected it is cleared
Implementation
List<int> get lastValue {
String key = "${primaryServiceUuid ?? ""}:$serviceUuid:$characteristicUuid:$instanceId:$descriptorUuid";
return FlutterBluePlus._lastDescs[remoteId]?[key] ?? [];
}