nullableStringToInt function Null safety

int? nullableStringToInt(
  1. String? value
)

Implementation

int? nullableStringToInt(String? value) {
  return value != null ? stringToInt(value) : null;
}