isInSafeRange static method

bool isInSafeRange(
  1. num n
)

Returns if the number is in safe range

Implementation

static bool isInSafeRange(num n) {
  return n <= maxInt && n >= -maxInt;
}