replaceWhere method

bool replaceWhere(
  1. ReplaceValidator<T> validator,
  2. ReplaceValue<T> replaceValue
)

Implementation

bool replaceWhere(
    ReplaceValidator<T> validator, ReplaceValue<T> replaceValue) {
  bool hasReplaced = false;
  for (final item in elements) {
    if (item.replaceWhere(validator, replaceValue)) hasReplaced = true;
  }
  return hasReplaced;
}