@@ -29,7 +29,7 @@ import 'inherited_notifier.dart';
2929/// changes, use the [Focus.of] and [FocusScope.of] static methods.
3030///
3131/// To access the focused state of the nearest [Focus] widget, use
32- /// [Focus .hasFocus] from a build method, which also establishes a relationship
32+ /// [FocusNode .hasFocus] from a build method, which also establishes a relationship
3333/// between the calling widget and the [Focus] widget that will rebuild the
3434/// calling widget when the focus changes.
3535///
@@ -364,16 +364,17 @@ class Focus extends StatefulWidget {
364364 /// This is sometimes useful if a [Focus] widget should receive key events as
365365 /// part of the focus chain, but shouldn't be accessible via focus traversal.
366366 ///
367- /// This is different from [canRequestFocus] because it only implies that the
368- /// widget can't be reached via traversal, not that it can't be focused. It may
369- /// still be focused explicitly.
367+ /// This is different from [FocusNode. canRequestFocus] because it only implies
368+ /// that the widget can't be reached via traversal, not that it can't be
369+ /// focused. It may still be focused explicitly.
370370 final bool skipTraversal;
371371
372372 /// {@template flutter.widgets.Focus.includeSemantics}
373373 /// Include semantics information in this widget.
374374 ///
375- /// If true, this widget will include a [Semantics] node that
376- /// indicates the [Semantics.focusable] and [Semantics.focused] properties.
375+ /// If true, this widget will include a [Semantics] node that indicates the
376+ /// [SemanticsProperties.focusable] and [SemanticsProperties.focused]
377+ /// properties.
377378 ///
378379 /// It is not typical to set this to false, as that can affect the semantics
379380 /// information available to accessibility systems.
@@ -386,45 +387,46 @@ class Focus extends StatefulWidget {
386387 /// If true, this widget may request the primary focus.
387388 ///
388389 /// Defaults to true. Set to false if you want the [FocusNode] this widget
389- /// manages to do nothing when [requestFocus] is called on it. Does not affect
390- /// the children of this node, and [FocusNode.hasFocus] can still return true
391- /// if this node is the ancestor of the primary focus.
390+ /// manages to do nothing when [FocusNode. requestFocus] is called on it. Does
391+ /// not affect the children of this node, and [FocusNode.hasFocus] can still
392+ /// return true if this node is the ancestor of the primary focus.
392393 ///
393- /// This is different than [skipTraversal] because [skipTraversal] still
394- /// allows the widget to be focused, just not traversed to.
394+ /// This is different than [Focus. skipTraversal] because [Focus. skipTraversal]
395+ /// still allows the widget to be focused, just not traversed to.
395396 ///
396- /// Setting [canRequestFocus] to false implies that the widget will also be
397- /// skipped for traversal purposes.
397+ /// Setting [FocusNode. canRequestFocus] to false implies that the widget will
398+ /// also be skipped for traversal purposes.
398399 ///
399400 /// See also:
400401 ///
401- /// * [FocusTraversalGroup] , a widget that sets the traversal policy for
402- /// its descendants.
403- /// * [FocusTraversalPolicy] , a class that can be extended to describe a
404- /// traversal policy.
402+ /// * [FocusTraversalGroup] , a widget that sets the traversal policy for its
403+ /// descendants.
404+ /// * [FocusTraversalPolicy] , a class that can be extended to describe a
405+ /// traversal policy.
405406 /// {@endtemplate}
406407 final bool canRequestFocus;
407408
408409 /// {@template flutter.widgets.Focus.descendantsAreFocusable}
409410 /// If false, will make this widget's descendants unfocusable.
410411 ///
411412 /// Defaults to true. Does not affect focusability of this node (just its
412- /// descendants): for that, use [canRequestFocus] .
413+ /// descendants): for that, use [FocusNode. canRequestFocus] .
413414 ///
414415 /// If any descendants are focused when this is set to false, they will be
415416 /// unfocused. When `descendantsAreFocusable` is set to true again, they will
416417 /// not be refocused, although they will be able to accept focus again.
417418 ///
418- /// Does not affect the value of [canRequestFocus] on the descendants.
419+ /// Does not affect the value of [FocusNode.canRequestFocus] on the
420+ /// descendants.
419421 ///
420422 /// See also:
421423 ///
422- /// * [ExcludeFocus] , a widget that uses this property to conditionally
423- /// exclude focus for a subtree.
424- /// * [FocusTraversalGroup] , a widget used to group together and configure
425- /// the focus traversal policy for a widget subtree that has a
426- /// `descendantsAreFocusable` parameter to conditionally block focus for a
427- /// subtree.
424+ /// * [ExcludeFocus] , a widget that uses this property to conditionally
425+ /// exclude focus for a subtree.
426+ /// * [FocusTraversalGroup] , a widget used to group together and configure the
427+ /// focus traversal policy for a widget subtree that has a
428+ /// `descendantsAreFocusable` parameter to conditionally block focus for a
429+ /// subtree.
428430 /// {@endtemplate}
429431 final bool descendantsAreFocusable;
430432
@@ -870,7 +872,7 @@ class FocusScope extends Focus {
870872 ///
871873 /// The [child] argument is required and must not be null.
872874 ///
873- /// The [autofocus] , and [showDecorations] arguments must not be null.
875+ /// The [autofocus] argument must not be null.
874876 const FocusScope ({
875877 Key key,
876878 FocusScopeNode node,
@@ -979,16 +981,17 @@ class ExcludeFocus extends StatelessWidget {
979981 /// unfocused. When `excluding` is set to false again, they will not be
980982 /// refocused, although they will be able to accept focus again.
981983 ///
982- /// Does not affect the value of [canRequestFocus] on the descendants.
984+ /// Does not affect the value of [FocusNode.canRequestFocus] on the
985+ /// descendants.
983986 ///
984987 /// See also:
985988 ///
986- /// * [Focus.descendantsAreFocusable] , the attribute of a [Focus] widget that
987- /// controls this same property for focus widgets.
988- /// * [FocusTraversalGroup] , a widget used to group together and configure
989- /// the focus traversal policy for a widget subtree that has a
990- /// `descendantsAreFocusable` parameter to conditionally block focus for a
991- /// subtree.
989+ /// * [Focus.descendantsAreFocusable] , the attribute of a [Focus] widget that
990+ /// controls this same property for focus widgets.
991+ /// * [FocusTraversalGroup] , a widget used to group together and configure the
992+ /// focus traversal policy for a widget subtree that has a
993+ /// `descendantsAreFocusable` parameter to conditionally block focus for a
994+ /// subtree.
992995 final bool excluding;
993996
994997 /// The child widget of this [ExcludeFocus] .
0 commit comments