Commit 3976cd7b authored by Collin Jackson's avatar Collin Jackson

Clean up syntax as suggested by sethladd

R=sethladd@google.com, sethladd

Review URL: https://codereview.chromium.org/1159763003
parent 2470cdca
...@@ -11,11 +11,9 @@ class RenderSolidColor extends RenderDecoratedBox { ...@@ -11,11 +11,9 @@ class RenderSolidColor extends RenderDecoratedBox {
final double desiredWidth; final double desiredWidth;
final int backgroundColor; final int backgroundColor;
RenderSolidColor(int backgroundColor, { double desiredHeight: double.INFINITY, RenderSolidColor(int backgroundColor, { this.desiredHeight: double.INFINITY,
double desiredWidth: double.INFINITY }) this.desiredWidth: double.INFINITY })
: desiredHeight = desiredHeight, : backgroundColor = backgroundColor,
desiredWidth = desiredWidth,
backgroundColor = backgroundColor,
super(new BoxDecoration(backgroundColor: backgroundColor)); super(new BoxDecoration(backgroundColor: backgroundColor));
BoxDimensions getIntrinsicDimensions(BoxConstraints constraints) { BoxDimensions getIntrinsicDimensions(BoxConstraints constraints) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment