getStudy method

  1. @override
Future<Study> getStudy(
  1. GetStudyRequest request
)
override

Gets a Study by name.

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<Study> getStudy(GetStudyRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getStudy case final getStudy?) {
    return getStudy(request);
  }
  throw UnsupportedError('getStudy');
}