void remove([num index = -1 ])

Destroys a View attached to this container at the specified index.

If index is not specified, the last View in the container will be removed. TODO(i): rename to destroy

Source

void remove([num index = -1]) {
  if (index == -1) index = this.length - 1;
  var view = this._element.detachView(index);
  view.destroy();
}