insert method

void insert(
  1. int index,
  2. T item
)

Adds item to List at given index and notifies stream.

Implementation

void insert(int index, T item) {
  _list.insert(index, item);

  notify();
}