replace static method

String? replace(
  1. String? text,
  2. Pattern from,
  3. String replace
)

replace

Implementation

static String? replace(String? text, Pattern from, String replace) {
  if (isEmpty(text)) {
    return null;
  }
  return text!.replaceAll(from, replace);
}