replace function Null safety
Replaces matches for pattern in string with replacement.
Implementation
String replace(String string, Pattern pattern, String replacement) {
return string.replaceAll(pattern, replacement);
}
Replaces matches for pattern in string with replacement.
String replace(String string, Pattern pattern, String replacement) {
return string.replaceAll(pattern, replacement);
}