FocusTraversalGroup constructor Null safety
- {Key? key,
- FocusTraversalPolicy? policy,
- bool descendantsAreFocusable = true,
- bool descendantsAreTraversable = true,
- required Widget child}
Creates a FocusTraversalGroup object.
The child and descendantsAreFocusable arguments must not be null.
Implementation
FocusTraversalGroup({
super.key,
FocusTraversalPolicy? policy,
this.descendantsAreFocusable = true,
this.descendantsAreTraversable = true,
required this.child,
}) : assert(descendantsAreFocusable != null),
assert(descendantsAreTraversable != null),
policy = policy ?? ReadingOrderTraversalPolicy();