toCharacterBreakStr static method

String? toCharacterBreakStr(
  1. String? word
)

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;
}