updateDataset method

  1. @override
Future<Dataset> updateDataset(
  1. UpdateDatasetRequest request
)
override

Updates a Dataset.

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<Dataset> updateDataset(UpdateDatasetRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_updateDataset case final updateDataset?) {
    return updateDataset(request);
  }
  throw UnsupportedError('updateDataset');
}