getExampleStore method

  1. @override
Future<ExampleStore> getExampleStore(
  1. GetExampleStoreRequest request
)
override

Get an ExampleStore.

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<ExampleStore> getExampleStore(GetExampleStoreRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getExampleStore case final getExampleStore?) {
    return getExampleStore(request);
  }
  throw UnsupportedError('getExampleStore');
}