@@ -672,10 +672,9 @@ class SemanticsData with Diagnosticable {
672672 properties.add (DoubleProperty ('elevation' , elevation, defaultValue: 0.0 ));
673673 properties.add (DoubleProperty ('thickness' , thickness, defaultValue: 0.0 ));
674674 final List <String > actionSummary = < String > [
675- // ignore: deprecated_member_use
676- for (final SemanticsAction action in SemanticsAction .doNotUseWillBeDeletedWithoutWarningValuesAsList)
675+ for (final SemanticsAction action in SemanticsAction .values)
677676 if ((actions & action.index) != 0 )
678- describeEnum ( action) ,
677+ action.name ,
679678 ];
680679 final List <String ?> customSemanticsActionSummary = customSemanticsActionIds!
681680 .map <String ?>((int actionId) => CustomSemanticsAction .getAction (actionId)! .label)
@@ -684,10 +683,9 @@ class SemanticsData with Diagnosticable {
684683 properties.add (IterableProperty <String ?>('customActions' , customSemanticsActionSummary, ifEmpty: null ));
685684
686685 final List <String > flagSummary = < String > [
687- // ignore: deprecated_member_use
688- for (final SemanticsFlag flag in SemanticsFlag .doNotUseWillBeDeletedWithoutWarningValuesAsList)
686+ for (final SemanticsFlag flag in SemanticsFlag .values)
689687 if ((flags & flag.index) != 0 )
690- describeEnum ( flag) ,
688+ flag.name ,
691689 ];
692690 properties.add (IterableProperty <String >('flags' , flagSummary, ifEmpty: null ));
693691 properties.add (AttributedStringProperty ('label' , attributedLabel));
@@ -2785,14 +2783,13 @@ class SemanticsNode extends AbstractNode with DiagnosticableTreeMixin {
27852783 properties.add (DiagnosticsProperty <Rect >('rect' , rect, description: description, showName: false ));
27862784 }
27872785 properties.add (IterableProperty <String >('tags' , tags? .map ((SemanticsTag tag) => tag.name), defaultValue: null ));
2788- final List <String > actions = _actions.keys.map <String >((SemanticsAction action) => '${describeEnum ( action ) }${_debugIsActionBlocked (action ) ? '🚫️' : '' }' ).toList ()..sort ();
2786+ final List <String > actions = _actions.keys.map <String >((SemanticsAction action) => '${action . name }${_debugIsActionBlocked (action ) ? '🚫️' : '' }' ).toList ()..sort ();
27892787 final List <String ?> customSemanticsActions = _customSemanticsActions.keys
27902788 .map <String ?>((CustomSemanticsAction action) => action.label)
27912789 .toList ();
27922790 properties.add (IterableProperty <String >('actions' , actions, ifEmpty: null ));
27932791 properties.add (IterableProperty <String ?>('customActions' , customSemanticsActions, ifEmpty: null ));
2794- // ignore: deprecated_member_use
2795- final List <String > flags = SemanticsFlag .doNotUseWillBeDeletedWithoutWarningValuesAsList.where ((SemanticsFlag flag) => hasFlag (flag)).map ((SemanticsFlag flag) => flag.toString ().substring ('SemanticsFlag.' .length)).toList ();
2792+ final List <String > flags = SemanticsFlag .values.where ((SemanticsFlag flag) => hasFlag (flag)).map ((SemanticsFlag flag) => flag.name).toList ();
27962793 properties.add (IterableProperty <String >('flags' , flags, ifEmpty: null ));
27972794 properties.add (FlagProperty ('isInvisible' , value: isInvisible, ifTrue: 'invisible' ));
27982795 properties.add (FlagProperty ('isHidden' , value: hasFlag (SemanticsFlag .isHidden), ifTrue: 'HIDDEN' ));
0 commit comments