@@ -17,16 +17,16 @@ abstract class OffsetBase {
1717 final double _dx;
1818 final double _dy;
1919
20- /// Returns true if either component is [double.INFINITY ] , and false if both
20+ /// Returns true if either component is [double.infinity ] , and false if both
2121 /// are finite (or negative infinity, or NaN).
2222 ///
2323 /// This is different than comparing for equality with an instance that has
24- /// _both_ components set to [double.INFINITY ] .
24+ /// _both_ components set to [double.infinity ] .
2525 ///
2626 /// See also:
2727 ///
2828 /// * [isFinite] , which is true if both components are finite (and not NaN).
29- bool get isInfinite => _dx >= double .INFINITY || _dy >= double .INFINITY ;
29+ bool get isInfinite => _dx >= double .infinity || _dy >= double .infinity ;
3030
3131 /// Whether both components are finite (neither infinite nor NaN).
3232 ///
@@ -183,7 +183,7 @@ class Offset extends OffsetBase {
183183 /// * [isInfinite] , which checks whether either component is infinite.
184184 /// * [isFinite] , which checks whether both components are finite.
185185 // This is included for completeness, because [Size.infinite] exists.
186- static const Offset infinite = const Offset (double .INFINITY , double .INFINITY );
186+ static const Offset infinite = const Offset (double .infinity , double .infinity );
187187
188188 /// Returns a new offset with the x component scaled by `scaleX` and the y
189189 /// component scaled by `scaleY` .
@@ -352,10 +352,10 @@ class Size extends OffsetBase {
352352 const Size .square (double dimension) : super (dimension, dimension);
353353
354354 /// Creates a [Size] with the given [width] and an infinite [height] .
355- const Size .fromWidth (double width) : super (width, double .INFINITY );
355+ const Size .fromWidth (double width) : super (width, double .infinity );
356356
357357 /// Creates a [Size] with the given [height] and an infinite [width] .
358- const Size .fromHeight (double height) : super (double .INFINITY , height);
358+ const Size .fromHeight (double height) : super (double .infinity , height);
359359
360360 /// Creates a square [Size] whose [width] and [height] are twice the given
361361 /// dimension.
@@ -382,7 +382,7 @@ class Size extends OffsetBase {
382382 ///
383383 /// * [isInfinite] , which checks whether either dimension is infinite.
384384 /// * [isFinite] , which checks whether both dimensions are finite.
385- static const Size infinite = const Size (double .INFINITY , double .INFINITY );
385+ static const Size infinite = const Size (double .infinity , double .infinity );
386386
387387 /// Whether this size encloses a non-zero area.
388388 ///
@@ -670,10 +670,10 @@ class Rect {
670670 /// Whether any of the coordinates of this rectangle are equal to positive infinity.
671671 // included for consistency with Offset and Size
672672 bool get isInfinite {
673- return left >= double .INFINITY
674- || top >= double .INFINITY
675- || right >= double .INFINITY
676- || bottom >= double .INFINITY ;
673+ return left >= double .infinity
674+ || top >= double .infinity
675+ || right >= double .infinity
676+ || bottom >= double .infinity ;
677677 }
678678
679679 /// Whether all coordinates of this rectangle are finite.
0 commit comments