update abstract method

Future<void> update(
  1. ObjectId id,
  2. T update(
    1. T object
    )
)

Subclasses must implement this to update a single object by id. The update function is passed the current object and should return the updated object.

Implementation

Future<void> update(ObjectId id, T Function(T object) update);