replaceAt method
Implementation
T replaceAt(int index, T value) {
final T last = removeAt(index);
insert(index, value);
return last;
}
T replaceAt(int index, T value) {
final T last = removeAt(index);
insert(index, value);
return last;
}