readStoredValue<T> method
Returns the locally stored value, without making a Bluetooth request. A field's dynamic read callback may return a different value to clients.
Implementation
T readStoredValue<T>(BleField<T> field) {
if (!identical(_field(field.uuid), field)) {
throw ArgumentError('Field does not belong to the active profile');
}
return field.codec.decode(List.of(_values[field.uuid]!));
}