| Index: sky/examples/game/lib/node_with_size.dart
|
| diff --git a/sky/examples/game/lib/node_with_size.dart b/sky/examples/game/lib/node_with_size.dart
|
| index 1e7c65729c90c1f9060a30690531a67c2a52f040..3a6849a954f68c06c8bb75a91fe6c81678341b58 100644
|
| --- a/sky/examples/game/lib/node_with_size.dart
|
| +++ b/sky/examples/game/lib/node_with_size.dart
|
| @@ -5,11 +5,11 @@ abstract class NodeWithSize extends Node {
|
| Point pivot;
|
|
|
| NodeWithSize() {
|
| - size = new Size(0.0, 0.0);
|
| - pivot = new Point(0.0, 0.0);
|
| + size = Size.zero;
|
| + pivot = Point.origin;
|
| }
|
|
|
| - NodeWithSize.withSize(Size size, [Point pivot]);
|
| + NodeWithSize.withSize(Size this.size, [Point this.pivot]);
|
|
|
| void applyTransformForPivot(PictureRecorder canvas) {
|
| if (pivot.x != 0 || pivot.y != 0) {
|
|
|