detach method

ViewRef detach(
  1. [int index = -1]
)

Use along with #insert to move a View within the current container.

If the index param is omitted, the last ViewRef is detached. TODO(i): refactor insert+remove into move

Implementation

ViewRef detach([int index = -1]);