previous method Null safety

bool previous(
  1. FocusNode currentNode
)

Focuses the previous widget in the focus scope that contains the given currentNode.

This should determine what the previous node to receive focus 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.

The currentNode argument must not be null.

Implementation

bool previous(FocusNode currentNode) => _moveFocus(currentNode, forward: false);