I'm trying to make a stringCorrector function for avoiding non-English words, but don't know how to implement this to string in Dart; as an example;
İstanbul ====> Istanbul, New York===> NewYork, İşÇöÜ===>IsCoU
String stringCorrector(String string) {
Map<String, String> correcterMap = {
'ö': 'o',
'ü': 'u',
'Ö': 'O',
'Ü': 'U',
'İ': 'I',
'ı': 'i',
'ğ': 'g',
'Ğ': 'G',
' ': ''
};
}