safeParseInt function

int safeParseInt(
  1. String v, [
  2. int? base
])

Implementation

int safeParseInt(String v, [int? base]) {
  if (v.startsWith('00')) {
    throw FormatException('invalid RLP: extra zeros');
  }

  return int.parse(v, radix: base);
}