diff --git a/lib/ui/semantics.dart b/lib/ui/semantics.dart index 63a715eb91049..d4da11eafd825 100644 --- a/lib/ui/semantics.dart +++ b/lib/ui/semantics.dart @@ -228,6 +228,16 @@ class SemanticsAction { _kSetTextIndex: setText, }; + /// Temporary API until [values] return a list. + /// https://github.com/flutter/flutter/issues/123346 + @Deprecated('This getter is temporary and will be removed shortly.') + static List get doNotUseWillBeDeletedWithoutWarningValuesAsList => values.values.toList(growable: false); + + /// Temporary API until [values] return a list. + /// https://github.com/flutter/flutter/issues/123346 + @Deprecated('This getter is temporary and will be removed shortly.') + static Iterable get doNotUseWillBeDeletedWithoutWarningKeys => values.keys; + @override String toString() { switch (index) { @@ -598,6 +608,16 @@ class SemanticsFlag { _kIsCheckStateMixedIndex: isCheckStateMixed, }; + /// Temporary API until [values] return a list. + /// https://github.com/flutter/flutter/issues/123346 + @Deprecated('This getter is temporary and will be removed shortly.') + static List get doNotUseWillBeDeletedWithoutWarningValuesAsList => values.values.toList(growable: false); + + /// Temporary API until [values] return a list. + /// https://github.com/flutter/flutter/issues/123346 + @Deprecated('This getter is temporary and will be removed shortly.') + static Iterable get doNotUseWillBeDeletedWithoutWarningKeys => values.keys; + @override String toString() { switch (index) { diff --git a/lib/web_ui/lib/semantics.dart b/lib/web_ui/lib/semantics.dart index 262b6bd7bb94a..81f56500a8ea7 100644 --- a/lib/web_ui/lib/semantics.dart +++ b/lib/web_ui/lib/semantics.dart @@ -80,6 +80,16 @@ class SemanticsAction { _kSetTextIndex: setText, }; + /// Temporary API until [values] return a list. + /// https://github.com/flutter/flutter/issues/123346 + @Deprecated('This getter is temporary and will be removed shortly.') + static List get doNotUseWillBeDeletedWithoutWarningValuesAsList => values.values.toList(growable: false); + + /// Temporary API until [values] return a list. + /// https://github.com/flutter/flutter/issues/123346 + @Deprecated('This getter is temporary and will be removed shortly.') + static Iterable get doNotUseWillBeDeletedWithoutWarningKeys => values.keys; + @override String toString() { switch (index) { @@ -221,6 +231,16 @@ class SemanticsFlag { _kIsCheckStateMixedIndex: isCheckStateMixed, }; + /// Temporary API until [values] return a list. + /// https://github.com/flutter/flutter/issues/123346 + @Deprecated('This getter is temporary and will be removed shortly.') + static List get doNotUseWillBeDeletedWithoutWarningValuesAsList => values.values.toList(growable: false); + + /// Temporary API until [values] return a list. + /// https://github.com/flutter/flutter/issues/123346 + @Deprecated('This getter is temporary and will be removed shortly.') + static Iterable get doNotUseWillBeDeletedWithoutWarningKeys => values.keys; + @override String toString() { switch (index) {