asSafeInt property

int get asSafeInt

Implementation

int get asSafeInt {
  if (isSafeInt()) return toInt();
  throw CoreErrors.invalidOperationArguments(
    "toInt",
    reason: "Value is too large for type int.",
  );
}