findFirstFocusInDirection abstract method

FocusNode? findFirstFocusInDirection(
  1. FocusNode currentNode,
  2. TraversalDirection direction
)

Returns the first node in the given direction that should receive focus if there is no current focus in the scope to which the currentNode belongs.

This is typically used by inDirection to determine which node to focus if it is called when no node is currently focused.

Implementation

FocusNode? findFirstFocusInDirection(FocusNode currentNode, TraversalDirection direction);