Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: sky/sdk/lib/rendering/object.dart

Issue 1211573003: Fill out some more documentation about building RenderBox subclasses. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/sdk/lib/rendering/object.dart
diff --git a/sky/sdk/lib/rendering/object.dart b/sky/sdk/lib/rendering/object.dart
index bc100a77d188ba23c0d543651a0da22a6e10c093..094796673bd773229e0d0bcfdf5756fb265a21d1 100644
--- a/sky/sdk/lib/rendering/object.dart
+++ b/sky/sdk/lib/rendering/object.dart
@@ -408,6 +408,11 @@ abstract class ContainerRenderObjectMixin<ChildType extends RenderObject, Parent
adoptChild(child);
_addToChildList(child, before: before);
}
+ void addAll(List<ChildType> children) {
+ if (children != null)
+ for (ChildType child in children)
+ add(child);
+ }
void _removeFromChildList(ChildType child) {
assert(child.parentData is ParentDataType);
assert(_debugUltimatePreviousSiblingOf(child, equals: _firstChild));

Powered by Google App Engine
This is Rietveld 408576698