updateFeature method

void updateFeature(
  1. FeatureAbstract newFeature
)

Implementation

void updateFeature(FeatureAbstract newFeature) {
  if (!containsFeature(newFeature.key)) {
    throw Exception('Feature key "${newFeature.key}" not found.');
  }
  replaceFeature(newFeature);
}