Updating the index The List class from the dart:core library provides the replaceRange() function to modify List items . This function replaces the value of the elements within the specified range. Where, Start_index − an integer representing the index position to start replacing.