insert method

String insert(
  1. String ins,
  2. String value,
  3. int offset
)

Implementation

String insert(String ins, String value, int offset) => offset == 0
    ? ins + value
    : value.substring(0, offset) + ins + value.substring(offset);