removeDiacriticsAndLowercase function
Removes diacritics (accents) from the given text
and then converts
it to lowercase.
For instance:
var input = "ÁbČDè";
var output = removeDiacriticsAndLowercase(input);
print(output); // Outputs "abcde"
text
: The text to be processed.
Returns a new string without diacritics and in lowercase.
Implementation
String removeDiacriticsAndLowercase(String text) {
return removeDiacritics(text.toLowerCase());
}