edit method

Future<T> edit(
  1. String id,
  2. T item, {
  3. String? callRole,
})

Update an entity Usage:

var result = await service.edit('<entity_id>', data);

Implementation

Future<T> edit(String id, T item, {String? callRole}) {
  String formattedPath = _crud.formatPathFromParts(
    [_crud.baseUrl, callRole ?? _crud.requestRole, _crud.path, id],
  );

  return _crud.put(formattedPath, item);
}