copyWith method

WorkflowEntity copyWith({
  1. ID? id,
  2. String? name,
  3. Trigger? trigger,
  4. List<ActionEntity>? actions,
  5. PageState? state,
  6. ID? cubitID,
})

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,
  );
}