visible property

bool visible

Returns whether the display object is visible or not.

Implementation

bool get visible {
  return _visible;
}
void visible=(bool flag)

Sets whether the display object is visible or not. It helps to optimize performance skipping the rendering process.

Implementation

set visible(bool flag) {
  if (_visible != flag) {
    _visible = flag;
    requiresRedraw();
  }
}