insert method

Future<List<E>> insert(
  1. int index,
  2. E element
)

Refer to List.insert.

Additionally returns the list.

Implementation

Future<List<E>> insert(int index, E element) async {
  return (await this)..insert(index, element);
}