toInt property

int? get toInt

Converts string to int safely

Implementation

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