FocusScope.withExternalFocusNode constructor

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


const factory FocusScope.withExternalFocusNode({
  Key? key,
  required Widget child,
  required FocusScopeNode focusScopeNode,
  FocusNode? parentNode,
  bool autofocus,
  ValueChanged<bool>? onFocusChange,
})  = _FocusScopeWithExternalFocusNode;