parseInt function

int? parseInt(
  1. String? intString
)

Implementation

int? parseInt(String? intString) {
  if (intString == null) return null;
  return int.tryParse(intString);
}