toInt method

int toInt()

Parses the string as an int number and returns the result.

Implementation

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