getSink method

  1. @override
Future<LogSink> getSink(
  1. GetSinkRequest request
)
override

Gets a sink.

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<LogSink> getSink(GetSinkRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getSink case final getSink?) {
    return getSink(request);
  }
  throw UnsupportedError('getSink');
}