toIntSafe method

int? toIntSafe()

Parses as int, or null if not a valid integer.

Implementation

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