enabled property

bool get enabled
inherited

Whether this node ticks, renders, and hears input, all three.

Implementation

bool get enabled => activity == .all;
  1. @nonVirtual
set enabled (bool value)
inherited

Implementation

@nonVirtual
set enabled(bool value) {
  if (value) {
    enable();
  } else {
    disable();
  }
}