tryInt method

int? tryInt()

Parses the string as an integer. Returns null if parsing fails.

Implementation

int? tryInt() => int.tryParse(this);