FocusScopeNode constructor Null safety

FocusScopeNode(
  1. {String? debugLabel,
  2. FocusOnKeyEventCallback? onKeyEvent,
  3. FocusOnKeyCallback? onKey,
  4. bool skipTraversal = false,
  5. bool canRequestFocus = true}
)

Creates a FocusScopeNode.

All parameters are optional.

Implementation

FocusScopeNode({
  super.debugLabel,
  super.onKeyEvent,
  super.onKey,
  super.skipTraversal,
  super.canRequestFocus,
})  : assert(skipTraversal != null),
      assert(canRequestFocus != null),
      super(
        descendantsAreFocusable: true,
      );