toIntOrNull method

int? toIntOrNull()

Parses an int, null when it is not one. "x".toIntOrNull() → null

Implementation

int? toIntOrNull() => int.tryParse(toLatinNumber().trim());