edit method
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);
}