getEndpoint method

  1. @override
Future<Endpoint> getEndpoint(
  1. GetEndpointRequest request
)
override

Gets an Endpoint.

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<Endpoint> getEndpoint(GetEndpointRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getEndpoint case final getEndpoint?) {
    return getEndpoint(request);
  }
  throw UnsupportedError('getEndpoint');
}