deleteTrial method

  1. @override
Future<void> deleteTrial(
  1. DeleteTrialRequest request
)
override

Deletes a Trial.

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<void> deleteTrial(DeleteTrialRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_deleteTrial case final deleteTrial?) {
    return deleteTrial(request);
  }
  throw UnsupportedError('deleteTrial');
}