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 feature, otherwise false.