stringToInt function Null safety

int stringToInt(
  1. String value
)

Implementation

int stringToInt(String value) {
  return int.parse(value);
}