priority property

int get priority

This node's order in updating and rendering in its parent. Defaults to 0.

Implementation

int get priority => _priority;
set priority (int value)

Implementation

set priority(int value) {
  _priority = value;
  final target = parent;
  if (target == null) return;

  if (target.isMounted) {
    target.scene._tree._reposition(this, target);
  } else {
    target._reposition(this);
  }
}