copyWith method

  1. @override
WorkflowModel copyWith({
  1. String? documentID,
  2. String? name,
  3. List<WorkflowTaskModel>? workflowTask,
  4. String? appId,
})
override

Implementation

@override
WorkflowModel copyWith({
  String? documentID,
  String? name,
  List<WorkflowTaskModel>? workflowTask,
  String? appId,
}) {
  return WorkflowModel(
    documentID: documentID ?? this.documentID,
    name: name ?? this.name,
    workflowTask: workflowTask ?? this.workflowTask,
    appId: appId ?? this.appId,
  );
}