toCharacterBreakStr static method
Implementation
static String? toCharacterBreakStr(String? word) {
if (word == null || word.isEmpty) {
return null;
}
String breakWord = '';
word.runes.forEach((element) {
breakWord += String.fromCharCode(element);
breakWord += '\u200B';
});
return breakWord;
}