traversalChildren property

Iterable<FocusNode> traversalChildren

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

Implementation

Iterable<FocusNode> get traversalChildren {
  if (!canRequestFocus) {
    return const <FocusNode>[];
  }
  return children.where(
    (FocusNode node) => !node.skipTraversal && node.canRequestFocus,
  );
}