setFeaturesVisible method

void setFeaturesVisible(
  1. {required List<Feature> features,
  2. required bool visible}
)

Sets the visibility of the given features.

Parameters:

  • features — A List of Feature. Contents of the List are copied.
  • visible — True to show the features, otherwise false.

Implementation

void setFeaturesVisible(
    {required List<Feature> features, required bool visible}) {
  final coreFeatures =
      features.toMutableArray(valueType: _ElementType.feature);
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_FeatureLayer_setFeaturesVisible(
        _handle, coreFeatures._handle, visible, errorHandler);
  });
}