FocusTraversalPolicy constructor
- TraversalRequestFocusCallback? requestFocusCallback,
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
The requestFocusCallback
can be used to override the default behavior
of the focus requests. If requestFocusCallback
is null, it defaults to FocusTraversalPolicy.defaultTraversalRequestFocusCallback.
Implementation
const FocusTraversalPolicy({
TraversalRequestFocusCallback? requestFocusCallback
}) : requestFocusCallback = requestFocusCallback ?? defaultTraversalRequestFocusCallback;