readAll method

Future<List<T>> readAll({
  1. String? userId,
})

Reads all entities from the primary local adapter.

Implementation

Future<List<T>> readAll({String? userId}) async {
  _ensureInitialized();
  final entities = await localAdapter.readAll(userId: userId);
  return Future.wait(entities.map(_applyPostFetchTransforms));
}