copyWith method
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);