inDirection method

bool inDirection (
  1. FocusNode currentNode,
  2. TraversalDirection direction
)

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

This should determine what the next node to receive focus in the given direction 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.

All arguments must not be null.

Implementation

bool inDirection(FocusNode currentNode, TraversalDirection direction);