getMetadataStore method

  1. @override
Future<MetadataStore> getMetadataStore(
  1. GetMetadataStoreRequest request
)
override

Retrieves a specific MetadataStore.

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<MetadataStore> getMetadataStore(
  GetMetadataStoreRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getMetadataStore case final getMetadataStore?) {
    return getMetadataStore(request);
  }
  throw UnsupportedError('getMetadataStore');
}