$request top-level property

Future<TResult> Function<TResult>(IQuery<TResult> query) $request
final

Requests a query to its registered handler and returns the result.

Each query type must have exactly one registered handler. The query is processed through the pipeline before reaching the handler.

@param query The query to process @returns A Future containing the requested data

Implementation

final $request = Mediator.queries.request;