copyWith method

WorkflowEntity copyWith({
  1. String? documentID,
  2. String? name,
  3. List<WorkflowTaskEntity>? workflowTask,
  4. String? appId,
})

Implementation

WorkflowEntity copyWith({
  String? documentID,
  String? name,
  List<WorkflowTaskEntity>? workflowTask,
  String? appId,
}) {
  return WorkflowEntity(
    name: name ?? this.name,
    workflowTask: workflowTask ?? this.workflowTask,
    appId: appId ?? this.appId,
  );
}