Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions lib/ui/semantics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<SemanticsAction> 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<int> get doNotUseWillBeDeletedWithoutWarningKeys => values.keys;

@override
String toString() {
switch (index) {
Expand Down Expand Up @@ -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<SemanticsFlag> 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<int> get doNotUseWillBeDeletedWithoutWarningKeys => values.keys;

@override
String toString() {
switch (index) {
Expand Down
20 changes: 20 additions & 0 deletions lib/web_ui/lib/semantics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<SemanticsAction> 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<int> get doNotUseWillBeDeletedWithoutWarningKeys => values.keys;

@override
String toString() {
switch (index) {
Expand Down Expand Up @@ -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<SemanticsFlag> 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<int> get doNotUseWillBeDeletedWithoutWarningKeys => values.keys;

@override
String toString() {
switch (index) {
Expand Down