toInt method

int toInt()

Converts string to int or throws FormatException

Implementation

int toInt() => int.parse(this);