update method

Future<E> update(
  1. E entity
)

Update an Entity in the data backend and return the newly updated Entity.

Implementation

Future<E> update(E entity) async {
  return builder(
    await _adapter.update(table, primaryColumn, entity.toJSON()),
  );
}