FocusScopeModifier.withExternalFocusNode constructor

const FocusScopeModifier.withExternalFocusNode({
  1. Key? key,
  2. required Widget child,
  3. required FocusScopeNode focusScopeNode,
  4. bool autofocus,
  5. 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;