infinite constant

PrinterOffset 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 PrinterOffset infinite = PrinterOffset(double.infinity, double.infinity);