descendantsAreTraversable property

bool descendantsAreTraversable

If false, tells the focus traversal policy to skip over for all of this node's descendants for purposes of the traversal algorithm.

Defaults to true. Does not affect the focus traversal of this node: for that, use skipTraversal.

Does not affect the value of FocusNode.skipTraversal on the descendants. Does not affect focusability of the descendants.

See also:

  • ExcludeFocusTraversal, a widget that uses this property to conditionally exclude focus traversal for a subtree.
  • descendantsAreFocusable, which makes this widget's descendants unfocusable.
  • ExcludeFocus, a widget that conditionally excludes focus for a subtree.
  • FocusTraversalGroup, a widget used to group together and configure the focus traversal policy for a widget subtree that also has an descendantsAreFocusable parameter that prevents its children from being focused.

Implementation

bool get descendantsAreTraversable => _descendantsAreTraversable;
  1. @mustCallSuper
void descendantsAreTraversable=(bool value)

Implementation

@mustCallSuper
set descendantsAreTraversable(bool value) {
  if (value != _descendantsAreTraversable) {
    _descendantsAreTraversable = value;
    _manager?._markPropertiesChanged(this);
  }
}