toInt method

int toInt()

Returns the value of this number as an int

Implementation

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