insert method

  1. @override
void insert(
  1. int index,
  2. E element
)
override

This operation is not supported by an unmodifiable list.

Implementation

@override
void insert(int index, E element) {
  throw UnsupportedError('Cannot add to an unmodifiable list');
}