toInt method

int toInt()

Truncates this num to an integer and returns the result as an int. Equivalent to truncate.Truncates the double value and returns the int

Implementation

int toInt() => _value.toInt();