focusInDirection method Null safety

bool focusInDirection(
  1. TraversalDirection direction
)

Request to move the focus to the nearest focus node in the given direction, by calling the FocusTraversalPolicy.inDirection method.

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

Implementation

bool focusInDirection(TraversalDirection direction) => FocusTraversalGroup.of(context!).inDirection(this, direction);