add method

  1. @override
void add(
  1. T value
)
override

Adds value to the end of the slice, extending the length of the underlying list and this slice by one. Note, the ranges of other slices on the underlying list will not change, therefore use with care as this may shift the underlying data in other slices.

Implementation

@override
void add(T value) {
  _list.insert(_end, value);
  _end++;
}