WidgetOrderTraversalPolicy constructor

WidgetOrderTraversalPolicy({
  1. TraversalRequestFocusCallback? requestFocusCallback,
})

Constructs a traversal policy that orders widgets for keyboard traversal based on the widget hierarchy order.

The requestFocusCallback can be used to override the default behavior of the focus requests. If requestFocusCallback is null, it defaults to FocusTraversalPolicy.defaultTraversalRequestFocusCallback.

Implementation

WidgetOrderTraversalPolicy({super.requestFocusCallback});