replaceList method

String? replaceList(
  1. List<String> from,
  2. String replace
)

Implementation

String? replaceList(List<String> from, String replace) {
  String? newString = this;

  if (isNullOrEmpty()) return null;

  for (String _from in from) {
    newString = newString!.replaceAll(_from, replace);
  }

  return newString;
}