updateFeature method

  1. @override
Future<Feature> updateFeature(
  1. UpdateFeatureRequest request
)
override

Updates the parameters 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> updateFeature(UpdateFeatureRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_updateFeature case final updateFeature?) {
    return updateFeature(request);
  }
  throw UnsupportedError('updateFeature');
}