insert method

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

insert element in the index

Implementation

void insert(int index, T element) {
  value.insert(index, element);
  notifyListeners();
}