addItemAt method

void addItemAt(
  1. dynamic data,
  2. int position
)

Implementation

void addItemAt(dynamic data, int position){
  listKey.currentState?.insertItem(position, duration: animateDuration);
  sliverListKey.currentState?.insertItem(position, duration: animateDuration);
  items.insert(position, data);
}