copy

abstract fun copy(model: K3Model = this.model, editor: E = this.editor, content: K3Content = this.content, touchLayerId: K3LayerId = this.touchLayerId): S(source)

Copies this state with new model, editor, content, and touchLayerId. Any additional custom properties are expected to be unchanged (i.e. copied as is).