getAll method

Future<List<T>> getAll({
  1. String? userId,
  2. Where? where,
  3. String? orderBy,
  4. bool descending = true,
})

Performs repository.getAll().

Implementation

Future<List<T>> getAll(
    {String? userId,
    Where? where,
    String? orderBy,
    bool descending = true}) async {
  final List<Model> raw = await repository.getAll(
      userId: userId, where: where, orderBy: orderBy, descending: descending);
  return [
    for (final model in raw) fromModelFactory(model),
  ];
}