FocusScopeModifier.withExternalFocusNode constructor
const
FocusScopeModifier.withExternalFocusNode({
- Key? key,
- required Widget child,
- required FocusScopeNode focusScopeNode,
- bool autofocus,
- ValueChanged<
bool> ? onFocusChange,
Creates a FocusScope widget that uses the given focusScopeNode
as the
source of truth for attributes on the node, rather than the attributes of
this widget.
Implementation
const factory FocusScopeModifier.withExternalFocusNode({
Key? key,
required Widget child,
required FocusScopeNode focusScopeNode,
bool autofocus,
ValueChanged<bool>? onFocusChange,
}) = _FocusScopeWithExternalFocusNode;