toInt function

int? toInt(
  1. dynamic arg
)

Implementation

int? toInt(arg) {
  return arg == null ? null : (arg is String ? int.parse(arg) : arg);
}