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, false to hide.

Implementation

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