copyWith method

WorkflowCreate copyWith({
  1. String? description,
  2. String? name,
  3. WorkflowLayout? startPointLayout,
  4. List<StatusLayoutUpdate>? statuses,
  5. List<TransitionUpdateDTO>? transitions,
})

Implementation

WorkflowCreate copyWith(
    {String? description,
    String? name,
    WorkflowLayout? startPointLayout,
    List<StatusLayoutUpdate>? statuses,
    List<TransitionUpdateDTO>? transitions}) {
  return WorkflowCreate(
    description: description ?? this.description,
    name: name ?? this.name,
    startPointLayout: startPointLayout ?? this.startPointLayout,
    statuses: statuses ?? this.statuses,
    transitions: transitions ?? this.transitions,
  );
}