incrementString function
Increment or decrement Strings, used for ^ operator.
Implementation
String incrementString(String s, int n) {
if (s.isEmpty) {
return '';
}
List<int> codes = List.from(s.codeUnits);
for (int i = 0; i < s.length; i++) {
codes[i] += n;
}
return String.fromCharCodes(codes);
}