infinite constant Null safety

Offset const infinite

An offset with infinite x and y components.

See also:

  • isInfinite, which checks whether either component is infinite.
  • isFinite, which checks whether both components are finite.

Implementation

// This is included for completeness, because [Size.infinite] exists.
static const Offset infinite = Offset(double.infinity, double.infinity);