Index: sky/engine/core/painting/Size.dart |
diff --git a/sky/engine/core/painting/Size.dart b/sky/engine/core/painting/Size.dart |
index fefdf4f329d8e244c8604d011bb9945c7fc97428..7738fd5559e81187505e0584a06f8185cc6c3cd4 100644 |
--- a/sky/engine/core/painting/Size.dart |
+++ b/sky/engine/core/painting/Size.dart |
@@ -22,6 +22,8 @@ class Size { |
Size operator +(Size other) => new Size(width + other.width, height + other.height); |
Size operator -(Size other) => new Size(width - other.width, height - other.height); |
+ bool get isInfinite => width >= double.INFINITY || height >= double.INFINITY; |
+ |
// does the equivalent of "return new Point(0,0) + this" |
Point toPoint() => new Point(this.width, this.height); |