clear method
Clears the underlying data the slice encompasses. This slice's length after will be zero. 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 clear() {
_list.removeRange(_start, _end);
_end = _start;
}