queryExtension method
Queries an extension with a default controller.
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
Future<QueryExtensionResponse> queryExtension(
QueryExtensionRequest request,
) async {
if (isClosed) throw StateError('Service is closed');
if (_queryExtension case final queryExtension?) {
return queryExtension(request);
}
throw UnsupportedError('queryExtension');
}