optionalInt static method

int? optionalInt(
  1. String? value
)

Implementation

static int? optionalInt(String? value) =>
    value != null ? int.parse(value) : null;