removeDiacriticalMarks method

String removeDiacriticalMarks()

Implementation

String removeDiacriticalMarks() {
  return splitMapJoin(
    '',
    onNonMatch: (char) => char.isNotEmpty && kDiacriticsString.contains(char)
        ? kNonDiacriticsString[kDiacriticsString.indexOf(char)]
        : char,
  );
}