RequestFocusIntent constructor
- FocusNode focusNode, {
- TraversalRequestFocusCallback? requestFocusCallback,
Creates an intent used with RequestFocusAction.
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 RequestFocusIntent(this.focusNode, {
TraversalRequestFocusCallback? requestFocusCallback
}) : requestFocusCallback = requestFocusCallback ?? FocusTraversalPolicy.defaultTraversalRequestFocusCallback;