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

Unified Diff: sky/sdk/lib/rendering/stack.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/stack.dart
diff --git a/sky/sdk/lib/rendering/stack.dart b/sky/sdk/lib/rendering/stack.dart
index a3efa186e095e854537c9925bd22750ba3fa88c9..be73d6f1aa4e4dd071f53d1f2c63b2601fcd18c7 100644
--- a/sky/sdk/lib/rendering/stack.dart
+++ b/sky/sdk/lib/rendering/stack.dart
@@ -35,8 +35,7 @@ class RenderStack extends RenderBox with ContainerRenderObjectMixin<RenderBox, S
RenderStack({
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