From a99042e10292337e8e40c0009c5796278dd716d3 Mon Sep 17 00:00:00 2001 From: Mouad Debbar Date: Tue, 9 Jul 2024 19:09:15 -0400 Subject: [PATCH] Update doc of `SemanticsProperties.identifier` (#149915) Updating the docs to reflect the change in https://github.com/flutter/engine/pull/53278. `Semantics(identifier: '...')` can now be used on web to facilitate testing and DOM lookup when it comes to semantics nodes. --- packages/flutter/lib/src/semantics/semantics.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter/lib/src/semantics/semantics.dart b/packages/flutter/lib/src/semantics/semantics.dart index 71e4e126be..e5291ae321 100644 --- a/packages/flutter/lib/src/semantics/semantics.dart +++ b/packages/flutter/lib/src/semantics/semantics.dart @@ -1219,6 +1219,9 @@ class SemanticsProperties extends DiagnosticableTree { /// It'll be appear in accessibility hierarchy as `resource-id`. /// /// On iOS, this will set `UIAccessibilityElement.accessibilityIdentifier`. + /// + /// On web, this will set a `flt-semantics-identifier` attribute on the DOM element + /// that corresponds to the semantics node. /// {@endtemplate} final String? identifier;