You can do it this way:
void main() {
String s = "Eaí? Como vai você?";
print(removerAcentos(s));
}
String removerAcentos(String str) {
var comAcento = 'ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž';
var semAcento = 'AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz';
for (int i = 0; i < comAcento.length; i++) {
str = str.replaceAll(comAcento[i], semAcento[i]);
}
return str;
}
There may be other ways to treat accents (maybe even better), but this is one of them.
Explanation
The method remove Centos will traverse each existing character in the variable comAcento and exchange all occurrences within the given text of that character by the character at the same position as the variable hundred.