FocusModifier.withExternalFocusNode constructor

const FocusModifier.withExternalFocusNode({
  1. Key? key,
  2. required Widget child,
  3. required FocusNode focusNode,
  4. bool autofocus,
  5. ValueChanged<bool>? onFocusChange,
  6. bool includeSemantics,
})

Creates a Focus widget that uses the given focusNode as the source of truth for attributes on the node, rather than the attributes of this widget.

Implementation

const factory FocusModifier.withExternalFocusNode({
  Key? key,
  required Widget child,
  required FocusNode focusNode,
  bool autofocus,
  ValueChanged<bool>? onFocusChange,
  bool includeSemantics,
}) = _FocusWithExternalFocusNode;