insert method

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

Implementation

String insert(int index, String value) {
  var newValue = substring(0, index) + value + substring(index);
  return newValue;
}