From 15f01468661a466bebaca255c6b7ae973af9f870 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Wed, 1 Nov 2017 12:55:06 -0700 Subject: [PATCH] Add missing dart docs to semantics-realted members. (#12821) Other missing dart docs have been added in https://github.com/flutter/flutter/pull/12813. --- .../flutter/lib/src/rendering/semantics.dart | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/flutter/lib/src/rendering/semantics.dart b/packages/flutter/lib/src/rendering/semantics.dart index 205a622b08..2ede294e11 100644 --- a/packages/flutter/lib/src/rendering/semantics.dart +++ b/packages/flutter/lib/src/rendering/semantics.dart @@ -1231,9 +1231,29 @@ class SemanticsConfiguration { // TAGS + /// The set of tags that this configuration wants to add to all child + /// [SemanticsNode]s. + /// + /// See also: + /// * [addTagForChildren] to add a tag and for more information about their + /// usage. Iterable get tagsForChildren => _tagsForChildren; Set _tagsForChildren; + /// Specifies a [SemanticsTag] that this configuration wants to apply to all + /// child [SemanticsNode]s. + /// + /// The tag is added to all [SemanticsNode] that pass through the + /// [RenderObject] owning this configuration while looking to be attached to a + /// parent [SemanticsNode]. + /// + /// Tags are used to communicate to a parent [SemanticsNode] that a child + /// [SemanticsNode] was passed through a particular [RenderObject]. The parent + /// can use this information to determine the shape of the semantics tree. + /// + /// See also: + /// * [RenderSemanticsGestureHandler.excludeFromScrolling] for an example of + /// how tags are used. void addTagForChildren(SemanticsTag tag) { _tagsForChildren ??= new Set(); _tagsForChildren.add(tag);