Unfortunately, strings are not iterable at the moment, so you have to use a for loop like this
for(int i=0; i<s.length; i++) { var char = s[i]; }
Note that Dart does not have a character class, so the string [index] will return another string.
source share