toIntOrNull method

int? toIntOrNull()

Returns null when parsing fails.

Implementation

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