visible property

bool visible
inherited

The visibility and availability of the display object.

Display objects that are not visible are disabled. For example, if visible=false for an InteractiveObject instance, it cannot be clicked.

Implementation

bool visible = true;
  1. @override
void visible=(bool value)
override

The visibility and availability of the display object.

Display objects that are not visible are disabled. For example, if visible=false for an InteractiveObject instance, it cannot be clicked.

Implementation

@override
set visible(bool value) {
  super.visible = value;
  if (value == false) _hideElement();
}