parseInt method

int? parseInt({
  1. int? nullValue,
})

Implementation

int? parseInt({int? nullValue}) {
  try {
    return num.parse(this).toInt();
  } catch (err, stackTrace) {
    ErrorReporter.log(err, stackTrace);
    return nullValue;
  }
}