traversalDescendants property

  1. @override
Iterable<FocusNode> traversalDescendants
override

Returns all descendants which do not have the skipTraversal and do have the canRequestFocus flag set.

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

Implementation

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