next method Null safety

bool next(
  1. FocusNode currentNode
)

Focuses the next widget in the focus scope that contains the given currentNode.

This should determine what the next node to receive focus should be by inspecting the node tree, and then calling FocusNode.requestFocus on the node that has been selected.

Returns true if it successfully found a node and requested focus.

The currentNode argument must not be null.

Implementation

bool next(FocusNode currentNode) => _moveFocus(currentNode, forward: true);