setFeatureVisible method

void setFeatureVisible(
  1. {required Feature feature,
  2. required bool visible}
)

Sets the visibility of the given feature.

Parameters:

  • feature — The feature.
  • visible — True to show the features, otherwise false.

Implementation

void setFeatureVisible({required Feature feature, required bool visible}) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_FeatureLayer_setFeatureVisible(
        _handle, feature._handle, visible, errorHandler);
  });
}