refetch method
Fetches the query and returns the resulting state projection.
Implementation
Future<QueryResult<T>> refetch({bool cancelRefetch = true}) async {
if (_listeners.isEmpty) {
_query = client.query(_options);
_resolved = _query.options;
}
try {
await _query.fetch(options: _resolved, cancelRefetch: cancelRefetch);
} on Object {
// The returned result carries the error state.
}
_updateResult();
return _result;
}