getFeature method

  1. @override
Future<Feature> getFeature(
  1. GetFeatureRequest request
)
override

Gets details of a single Feature.

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<Feature> getFeature(GetFeatureRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getFeature case final getFeature?) {
    return getFeature(request);
  }
  throw UnsupportedError('getFeature');
}