Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
66154322
Commit
66154322
authored
Nov 12, 2016
by
Ian Hickson
Committed by
GitHub
Nov 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention visitChildren in RenderObjectElement docs. (#6824)
parent
fa18423c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+10
-0
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
66154322
...
@@ -1992,6 +1992,9 @@ abstract class Element implements BuildContext {
...
@@ -1992,6 +1992,9 @@ abstract class Element implements BuildContext {
/// Calls the argument for each child. Must be overridden by subclasses that
/// Calls the argument for each child. Must be overridden by subclasses that
/// support having children.
/// support having children.
///
/// There is no guaranteed order in which the children will be visited, though
/// it should be consistent over time.
void
visitChildren
(
ElementVisitor
visitor
)
{
}
void
visitChildren
(
ElementVisitor
visitor
)
{
}
/// Calls the argument for each child that is relevant for semantics. By
/// Calls the argument for each child that is relevant for semantics. By
...
@@ -3401,6 +3404,13 @@ class InheritedElement extends ProxyElement {
...
@@ -3401,6 +3404,13 @@ class InheritedElement extends ProxyElement {
/// These three methods should update the render tree accordingly, attaching,
/// These three methods should update the render tree accordingly, attaching,
/// moving, and detaching the given child render object from this element's own
/// moving, and detaching the given child render object from this element's own
/// render object respectively.
/// render object respectively.
///
/// ### Walking the children
///
/// If a [RenderObjectElement] object has any children [Element]s, it must
/// expose them in its implementation of the [visitChildren] method. This method
/// is used by many of the framework's internal mechanisms, and so should be
/// fast. It is also used by the test framework and [debugDumpApp].
abstract
class
RenderObjectElement
extends
BuildableElement
{
abstract
class
RenderObjectElement
extends
BuildableElement
{
/// Creates an element that uses the given widget as its configuration.
/// Creates an element that uses the given widget as its configuration.
RenderObjectElement
(
RenderObjectWidget
widget
)
:
super
(
widget
);
RenderObjectElement
(
RenderObjectWidget
widget
)
:
super
(
widget
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment