insert method

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

Implementation

String insert(int index, String element) =>
    '${substring(0, index)}$element${substring(index, length)}';