replace function

String replace(
  1. String str,
  2. dynamic pattern
)

Implementation

String replace(String str, pattern) => str.replaceAll(str, pattern);