querySet<U> method

Future<Set<U>> querySet<U>()

Executes a query returning results as a Set of U.

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

Example

final userSet = await repository.querySet<User>();

Implementation

Future<Set<U>> querySet<U>() async => Set.from(await queryIterable());