From 3976cd7b2827773d57b11ec627d8eeddc69b4451 Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Tue, 26 May 2015 10:20:37 -0700 Subject: [PATCH] Clean up syntax as suggested by sethladd R=sethladd@google.com, sethladd Review URL: https://codereview.chromium.org/1159763003 --- examples/raw/simple_render_tree.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/raw/simple_render_tree.dart b/examples/raw/simple_render_tree.dart index 019c185eb1..b185c0794f 100644 --- a/examples/raw/simple_render_tree.dart +++ b/examples/raw/simple_render_tree.dart @@ -11,11 +11,9 @@ class RenderSolidColor extends RenderDecoratedBox { final double desiredWidth; final int backgroundColor; - RenderSolidColor(int backgroundColor, { double desiredHeight: double.INFINITY, - double desiredWidth: double.INFINITY }) - : desiredHeight = desiredHeight, - desiredWidth = desiredWidth, - backgroundColor = backgroundColor, + RenderSolidColor(int backgroundColor, { this.desiredHeight: double.INFINITY, + this.desiredWidth: double.INFINITY }) + : backgroundColor = backgroundColor, super(new BoxDecoration(backgroundColor: backgroundColor)); BoxDimensions getIntrinsicDimensions(BoxConstraints constraints) {