insert method

ViewRef insert(
  1. ViewRef viewRef,
  2. [int index = -1]

Inserts a View identified by a ViewRef into the container.

If index is not specified, the new View will be inserted as the last View in the container.

Returns the inserted ViewRef. TODO(i): refactor insert+remove into move


ViewRef insert(ViewRef viewRef, [int index = -1]);