removeCharacterAt method

String removeCharacterAt(
  1. int position
)

Removes a character by giving its position

Implementation

String removeCharacterAt(int position) {
  assert(position >= 0 && position < length);
  return substring(0, position) + substring(position + 1);
}