tryParseInt function

int? tryParseInt(
  1. String? value, {
  2. int? radix,
})

A wrapper around int.tryParse that accepts a null argument.

Implementation

int? tryParseInt(String? value, {int? radix}) =>
    value == null ? null : int.tryParse(value, radix: radix);