setWordAt method

String setWordAt(
  1. int index,
  2. String value
)

Implementation

String setWordAt(int index, String value) {
  final w = words.toList();
  w[index] = value;
  words = w;
  return text;
}