stringToIntNullable function

int? stringToIntNullable(
  1. String? number
)

Implementation

int? stringToIntNullable(String? number) =>
    number == null ? null : int.parse(number);