toInt method

int toInt()

convert a string in and int value if is possible throws a FormatException is string content is not a number value

Implementation

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