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 newContents) async {
return Future<void>(() => throw UnsupportedError('Unmodifiable operation'));
}