replaceRange method
Replaces a range of elements with the elements of replacements.
Removes the objects in the range from start to end, then inserts the elements of replacements at start.
Implementation
@override
Future<void> replaceRange(int start, int end, Iterable<E> newContents) async {
return Future<void>(() => _collective.replaceRange(start, end, newContents));
}