getAll method

Future<T> getAll({
  1. Map params = const {},
  2. String? callRole,
})

Get all entities Usage:

var entities = await service.getAll({ });

Implementation

Future<T> getAll({Map params = const {}, String? callRole}) {
  String formattedPath = _crud.formatPathFromParts(
    [_crud.baseUrl, callRole ?? _crud.requestRole, _crud.path],
  );

  return _crud.get(formattedPath);
}