highlight method

void highlight(
  1. {bool isHighlighted = true}
)

Sets the highlight property of this node and all of its children.

notifyListeners is called to notify all registered listeners.

Implementation

void highlight({bool isHighlighted = true}) {
  _isHighlighted = isHighlighted;
  for (final children in children) {
    children.highlight(isHighlighted: isHighlighted);
  }
  notifyListeners();
}