nullableToInt function Null safety

int? nullableToInt(
  1. String? value
)

Implementation

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