copyWith method

EmbeddedContent copyWith({
  1. int? entityId,
  2. String? entityType,
  3. Embeddable? entity,
})

Implementation

EmbeddedContent copyWith(
    {int? entityId, String? entityType, Embeddable? entity}) {
  return EmbeddedContent(
    entityId: entityId ?? this.entityId,
    entityType: entityType ?? this.entityType,
    entity: entity ?? this.entity,
  );
}