parseInt static method

int? parseInt(
  1. dynamic source
)

Implementation

static int? parseInt(source) {
  if (source == null) {
    return null;
  }
  if (source is int) {
    return source;
  }
  return int.tryParse(source);
}