toIntOrThrow property

int get toIntOrThrow

Implementation

int get toIntOrThrow {
  if (isValidInt) return toInt();
  throw ArgumentException.invalidOperationArguments(
    "toInt",
    reason: "Value is too large for type int.",
  );
}