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