addItem method

void addItem(
  1. Item item, {
  2. int? index,
  3. bool animate = true,
})

Adds item under this section. Forwards to SectionedListController.addItem.

Implementation

void addItem(Item item, {int? index, bool animate = true}) {
  controller.addItem(item, toSection: key, index: index, animate: animate);
}