replaceRowByValue method

void replaceRowByValue(
  1. T oldValue,
  2. T newValue
)

Replace the first master row equal to oldValue with newValue.

Implementation

void replaceRowByValue(T oldValue, T newValue) {
  final i = _all.indexOf(oldValue);
  if (i >= 0) _structural(() => _all[i] = newValue);
}