getUnformatted static method

String getUnformatted(
  1. String formatted
)

Strips all non-digit characters from formatted.

Implementation

static String getUnformatted(String formatted) =>
    formatted.replaceAll(RegExp(r'\D'), '');