replaceData method

void replaceData(
  1. int index,
  2. T value
)

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);
  }
}