runQuery method

  1. @override
Stream<RunQueryResponse> runQuery(
  1. RunQueryRequest request
)
override

Runs a query.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Stream<RunQueryResponse> runQuery(RunQueryRequest request) {
  if (isClosed) throw StateError('Service is closed');
  if (_runQuery case final runQuery?) {
    return runQuery(request);
  }
  throw UnsupportedError('runQuery');
}