| Index: samples-dev/swarm/swarm_ui_lib/base/Size.dart
|
| diff --git a/samples-dev/swarm/swarm_ui_lib/base/Size.dart b/samples-dev/swarm/swarm_ui_lib/base/Size.dart
|
| index 559392902ccf49279cf3a02a2a273d87335790b8..920b4a30b7ef512c892412a8f57d32ca6d3a2ebc 100644
|
| --- a/samples-dev/swarm/swarm_ui_lib/base/Size.dart
|
| +++ b/samples-dev/swarm/swarm_ui_lib/base/Size.dart
|
| @@ -11,8 +11,7 @@ class Size {
|
| num width;
|
| num height;
|
|
|
| - Size(num this.width, num this.height) {
|
| - }
|
| + Size(num this.width, num this.height) {}
|
|
|
| bool operator ==(Size other) {
|
| return other != null && width == other.width && height == other.height;
|
| @@ -127,8 +126,9 @@ class Size {
|
| * Returns this Size object, after optional scaling.
|
| */
|
| Size scaleToFit(Size target) {
|
| - num s = aspectRatio() > target.aspectRatio() ?
|
| - target.width / width : target.height / height;
|
| + num s = aspectRatio() > target.aspectRatio()
|
| + ? target.width / width
|
| + : target.height / height;
|
| return scale(s);
|
| }
|
|
|
|
|