removeDiacritics function Null safety

String removeDiacritics(
  1. String text
)

Removes accents and diacritics from the given String.

Implementation

String removeDiacritics(String text) =>
    String.fromCharCodes(replaceCodeUnits(text.codeUnits));