replace method

void replace(
  1. T value
)

Implementation

void replace(T value) {
  final index = indexOf(value);
  _exchangeAtIndex(index, value);
}