getOne method

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

Get a single Entity Usage:

var entity = await service.getOne('<entity_id>');

Implementation

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

  return _crud.get(formattedPath);
}