onlyNumbersInt property
int
get
onlyNumbersInt
Returns the integer representation of the string, considering only the numeric characters. If the string does not contain any numeric characters, it returns null.
Implementation
int get onlyNumbersInt => onlyNumbers.toInt ?? 0;