removeRange method
Removes the objects in the range start
inclusive to end
exclusive.
The provided range, given by start
and end
, must be valid.
A range from start
to end
is valid if 0 <= start <= end <= len
, where
len
is this list's length
. The range starts at start
and has length
end - start
. An empty range (with end == start
) is valid.
Implementation
IList<T> removeRange(int start, int end) {
// TODO: Still need to implement efficiently.
var list = toList(growable: true);
list.removeRange(start, end);
return IList._unsafeFromList(list, config: config);
}