formatOnlyNumbers method

String formatOnlyNumbers()

Implementation

String formatOnlyNumbers() => replaceAllMapped(
      RegExp(r"([^0-9])", caseSensitive: false),
      (Match m) => "",
    );