Excluir no Dart da Array

// data structure
void delete(int index) {
    int length = arr.length - 1;
    if (index >= 0 && index < length) {
      for (int i = index; i < length; i++) {
        arr[i] = arr[i + 1];
      }
    } else {
      print('This index is not exist');
    }
  }
Old-fashioned Okapi