by @kodeazy
flutter how to replace character at specific index in String?
- Strings are immutable in flutter.
void main() {
String example = "abceefg";
int pos = 3;
String replaceable_character = "d";
example = example.substring(0, pos) +
replaceable_character +
example.substring(pos + 1, example.length);
print(example);
}