copyWith method

ModelEntity copyWith({
  1. ID? id,
  2. String? name,
  3. String? description,
  4. List<ModelFieldEntity>? fields,
  5. List<WorkflowEntity>? methods,
})

Implementation

ModelEntity copyWith({
  ID? id,
  String? name,
  String? description,
  List<ModelFieldEntity>? fields,
  List<WorkflowEntity>? methods,
}) =>
    ModelEntity(
      id: id ?? this.id,
      name: name ?? this.name,
      description: description ?? this.description,
      fields: fields ?? this.fields,
      methods: methods ?? this.methods,
    );