replaceNumbersWithEight static method

String replaceNumbersWithEight(
  1. String text
)

Implementation

static String replaceNumbersWithEight(String text) {
  return text.replaceAllMapped(RegExp(r'\d'), (Match m) => '8');
}