提交 279cd624 编写于 作者: C Collin Jackson

Clean up syntax as suggested by sethladd

R=sethladd@google.com, sethladd

Review URL: https://codereview.chromium.org/1159763003
上级 6f126091
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册