findFirstFocusInDirection abstract method Null safety

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.

All arguments must not be null.


FocusNode? findFirstFocusInDirection(FocusNode currentNode, TraversalDirection direction);