toIntOrNull property

int? get toIntOrNull

Parses to int, returns null on failure.

Implementation

int? get toIntOrNull => int.tryParse(this);