extractNumeric property
String
get
extractNumeric
Extracts the numeric value from a string. Example: OTP 12312 27/04/2020 => 1231227042020
Implementation
String get extractNumeric {
var numStr = '';
for (var i = 0; i < length; i++) {
if (this[i].isInt) {
numStr += this[i];
}
}
return numStr;
}