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

Implementation

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