copyWith method

ChangedValue copyWith({
  1. String? name,
  2. String? oldValue,
  3. String? hiddenOldValue,
  4. String? newValue,
  5. String? hiddenNewValue,
})

Implementation

ChangedValue copyWith(
    {String? name,
    String? oldValue,
    String? hiddenOldValue,
    String? newValue,
    String? hiddenNewValue}) {
  return ChangedValue(
    name: name ?? this.name,
    oldValue: oldValue ?? this.oldValue,
    hiddenOldValue: hiddenOldValue ?? this.hiddenOldValue,
    newValue: newValue ?? this.newValue,
    hiddenNewValue: hiddenNewValue ?? this.hiddenNewValue,
  );
}