update abstract method
Updates an existing object in the storage.
The object's ID is extracted using getId to locate the existing object.
Parameters:
value- The object with updated data.
Throws:
- StateError if no object with the extracted ID exists in storage.
Returns a Future that completes when the object has been updated.
Implementation
Future<void> update(E value);