queryList<U> method

Future<List<U>> queryList<U>()

Executes a query returning results as a List of U.

Converts the result of queryIterable into a List. Returns an empty list if no executor is set.

Example

final userList = await repository.queryList<User>();

Implementation

Future<List<U>> queryList<U>() async => List.from(await queryIterable());