replaceAllFeatures method

  1. @override
void replaceAllFeatures(
  1. Iterable<FeatureAbstract> newFeatures
)
override

Implementation

@override
void replaceAllFeatures(Iterable<FeatureAbstract> newFeatures) {
  _guardAllFeaturesKeysUnique(newFeatures);
  _features.clear();
  for (final feature in newFeatures) {
    _features[feature.key] = feature;
  }
}