insert


Description:

public void insert (owned SidebarItem item, int position)

Inserts item at position to this.

If position is -1, or larger than the total number of items in this, the item will be appended to the end.

Cannot be used while a model is bound via [method@SidebarSection.bind_model].

Parameters:

this

a sidebar section

item

an item to insert

position

position to insert item at