replaceData method
Find and replace the objects by index
Use this to change any object by its index
Implementation
void replaceData(int index, T value) {
if (data.length > index) {
data[index] = value;
_dataFeed.sink.add(data);
}
}
Find and replace the objects by index
Use this to change any object by its index
void replaceData(int index, T value) {
if (data.length > index) {
data[index] = value;
_dataFeed.sink.add(data);
}
}