setLineAt method

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

Sets the line at the specified index to the given value.

Implementation

String setLineAt(int index, String value) {
  final l = lines.toList();
  l[index] = value;
  lines = l;
  return text;
}