copyWith method
Implementation
WorkflowEntity copyWith({
ID? id,
String? name,
Trigger? trigger,
List<ActionEntity>? actions,
PageState? state,
ID? cubitID,
}) {
return WorkflowEntity(
id: id ?? this.id,
name: name ?? this.name,
trigger: trigger ?? this.trigger,
actions: actions ?? this.actions,
cubitID: cubitID ?? this.cubitID,
);
}