| Index: sky/engine/core/painting/Size.dart
|
| diff --git a/sky/engine/core/painting/Size.dart b/sky/engine/core/painting/Size.dart
|
| index cf41608b8a9936efb4b5dee1837fd8d2d0d40457..5697086c319c9361d59a5c736e3956d5e571b96e 100644
|
| --- a/sky/engine/core/painting/Size.dart
|
| +++ b/sky/engine/core/painting/Size.dart
|
| @@ -4,9 +4,22 @@
|
|
|
| part of dart.sky;
|
|
|
| +/// Holds a 2D floating-point size.
|
| class Size {
|
| double width;
|
| double height;
|
|
|
| - Point(this.width, this.height);
|
| + Size(this.width, this.height);
|
| +
|
| + bool operator ==(other) {
|
| + if (!(other is Size)) return false;
|
| + return width == other.width && height == other.height;
|
| + }
|
| + int get hashCode {
|
| + int result = 373;
|
| + result = 37 * result + width.hashCode;
|
| + result = 37 * result + height.hashCode;
|
| + return result;
|
| + }
|
| + String toString() => "Size($width, $height)";
|
| }
|
|
|