FocusScopeNode constructor

FocusScopeNode(
  1. {String debugLabel,
  2. FocusOnKeyCallback onKey,
  3. bool skipTraversal: false,
  4. bool canRequestFocus: true}
)

Creates a FocusScopeNode.

All parameters are optional.

Implementation

FocusScopeNode({
  String debugLabel,
  FocusOnKeyCallback onKey,
  bool skipTraversal = false,
  bool canRequestFocus = true,
})  : assert(skipTraversal != null),
      assert(canRequestFocus != null),
      super(
        debugLabel: debugLabel,
        onKey: onKey,
        canRequestFocus: canRequestFocus,
        descendantsAreFocusable: true,
        skipTraversal: skipTraversal,
      );