copyWith method
WorkflowCreate
copyWith({
- String? description,
- String? name,
- WorkflowLayout? startPointLayout,
- List<
StatusLayoutUpdate> ? statuses, - 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,
);
}