traversalChildren property

  1. @override
Iterable<FocusNode> traversalChildren
override

An iterator over the children that are allowed to be traversed by the FocusTraversalPolicy.

Will return an empty iterable if this scope node is not focusable, or if descendantsAreFocusable is false.

See also:

  • traversalDescendants, which traverses all of the node's descendants, not just the immediate children.

Implementation

@override
Iterable<FocusNode> get traversalChildren {
  if (!canRequestFocus) {
    return const Iterable<FocusNode>.empty();
  }
  return super.traversalChildren;
}