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

Unified Diff: sky/sdk/lib/rendering/block.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/block.dart
diff --git a/sky/sdk/lib/rendering/block.dart b/sky/sdk/lib/rendering/block.dart
index ff840446b1a6ef4a4798b5621bae9b176da4d067..90373caf3f99c7baf8dccbcef5d7f01cad1a46ea 100644
--- a/sky/sdk/lib/rendering/block.dart
+++ b/sky/sdk/lib/rendering/block.dart
@@ -18,8 +18,7 @@ class RenderBlock extends RenderBox with ContainerRenderObjectMixin<RenderBox, B
RenderBlock({
List<RenderBox> children
}) {
- if (children != null)
- children.forEach((child) { add(child); });
+ addAll(children);
}
void setParentData(RenderBox child) {

Powered by Google App Engine
This is Rietveld 408576698