copyWith method

ConditionalAction copyWith({
  1. String? id,
  2. String? type,
  3. String? group,
  4. FCondition? condition,
  5. List<ActionEntity>? actionsTrueWorkflow,
  6. List<ActionEntity>? actionsFalseWorkflow,
})

Implementation

ConditionalAction copyWith({
  String? id,
  String? type,
  String? group,
  FCondition? condition,
  List<ActionEntity>? actionsTrueWorkflow,
  List<ActionEntity>? actionsFalseWorkflow,
}) {
  return ConditionalAction(
    id: id ?? this.id,
    type: type ?? this.type,
    group: group ?? this.group,
    condition: condition ?? this.condition,
    actionsTrueWorkflow: actionsTrueWorkflow ?? this.actionsTrueWorkflow,
    actionsFalseWorkflow: actionsFalseWorkflow ?? this.actionsFalseWorkflow,
  );
}