copyWith method

YMapDelta copyWith({
  1. YMapDeltaAction? action,
  2. Option<YValue>? oldValue,
  3. Option<YValue>? newValue,
})

Returns a new instance by overriding the values passed as arguments

Implementation

YMapDelta copyWith({
  YMapDeltaAction? action,
  Option<YValue>? oldValue,
  Option<YValue>? newValue,
}) =>
    YMapDelta(
        action: action ?? this.action,
        oldValue: oldValue != null ? oldValue.value : this.oldValue,
        newValue: newValue != null ? newValue.value : this.newValue);