getDateValues static method

String getDateValues(
  1. String str
)

Implementation

static String getDateValues(String str) {
  return str.replaceAll(RegExp(r'[^0-9]'), '');
}