infinity property

int get infinity

Returns positive infinity as the maximum 64-bit signed integer value.

Implementation: (1 << 63) - 1

This represents the largest possible value that can be stored in a 64-bit signed integer: 9,223,372,036,854,775,807

Example:

int maxBound = int.infinity;
print(maxBound); // 9223372036854775807

Implementation

int get infinity => (1 << 63) - 1;