findLastFocus method Null safety
- FocusNode currentNode
Returns the node that should receive focus if focus is traversing backwards, and there is no current focus.
currentNode argument must not be null.
The default implementation returns the FocusScopeNode.focusedChild, if
set, on the nearest scope of the
currentNode, otherwise, returns the
last node from sortDescendants, or the given
currentNode if there are
- previous, the function that is called to move the focus to the next node.
- DirectionalFocusTraversalPolicyMixin.findFirstFocusInDirection, a function that finds the first focusable widget in a particular direction.
FocusNode findLastFocus(FocusNode currentNode) => _findInitialFocus(currentNode, fromEnd: true);