copyWith method

YUndoEvent copyWith({
  1. Option<Uint8List>? origin,
  2. YUndoKind? kind,
  3. StackItemSets? stackItem,
})

Returns a new instance by overriding the values passed as arguments

Implementation

YUndoEvent copyWith({
  Option<Uint8List>? origin,
  YUndoKind? kind,
  StackItemSets? stackItem,
}) =>
    YUndoEvent(
        origin: origin != null ? origin.value : this.origin,
        kind: kind ?? this.kind,
        stackItem: stackItem ?? this.stackItem);