diff --git a/examples/raw/simple_render_tree.dart b/examples/raw/simple_render_tree.dart index 019c185eb1e83939011624c4c6b629360179f782..b185c0794f4dace7cb37a767d238be99f224c67b 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) {