copyWith method
ModelEntity
copyWith({
- ID? id,
- String? name,
- String? description,
- List<
ModelFieldEntity> ? fields, - 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,
);