transformedValues property

List<Operation> get transformedValues

Implementation

List<Operation> get transformedValues {
  final transformedValues = <Operation>[];
  for (int i = 0; i < values.length; i++) {
    if (i == index1) {
      transformedValues.add(this);
    } else if (i == index2) {
      continue;
    } else {
      transformedValues.add(values[i]);
    }
  }

  return transformedValues;
}