replaceAllIgnoreCase method

String replaceAllIgnoreCase(
  1. String from,
  2. String to
)

Implementation

String replaceAllIgnoreCase(String from, String to) {
  if (this == null || this!.isEmpty) return '';
  return this!.replaceAll(
    RegExp(RegExp.escape(from), caseSensitive: false),
    to,
  );
}