toInt method

int toInt()

Converts the string into an int

Throws if the string is not an Integer.

Implementation

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