readQuery<TData extends Object, TVars> method

Future<TData?> readQuery<TData extends Object, TVars>(
  1. OperationRequest<TData, TVars> request, {
  2. bool optimistic = true,
})

read the given query from the cache. returns null if the result of the query is not cached

Implementation

Future<TData?> readQuery<TData extends Object, TVars>(
    OperationRequest<TData, TVars> request,
    {bool optimistic = true}) {
  return _handleSingleResponseCommand((sendPort) =>
      ReadQueryCommand(sendPort, request, optimistic: optimistic));
}