removeInvisibleUnicode method Null safety
Removes invisible Unicode characters that are invalid when used in a Markdown context, such as non-breakable spaces, small spaces, etc.
Implementation
String removeInvisibleUnicode() {
return this != null
? this!.replaceAll('\u00a0', ' ').replaceAll('\u202f', ' ')
: '';
}