toInt property

int toInt

Parses the string as an int or returns null if it is not a number.

Implementation

int get toInt => num.parse(this!).toInt();