toInt method

int toInt()

Converts the string to an integer.

Implementation

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