toInt method
Parses this string as an integer, truncating any fractional component.
Throws FormatException if the underlying numeric parse fails.
Implementation
int toInt() => toNum().toInt();
Parses this string as an integer, truncating any fractional component.
Throws FormatException if the underlying numeric parse fails.
int toInt() => toNum().toInt();