onlyDigits method
Returns only the numeric digits from this string.
Implementation
String onlyDigits() =>
this == null ? '' : this!.replaceAll(RegExp(r'[^0-9]'), '');
Returns only the numeric digits from this string.
String onlyDigits() =>
this == null ? '' : this!.replaceAll(RegExp(r'[^0-9]'), '');