copyWith method

ArticleDTO copyWith({
  1. ContentDTO? content,
  2. String? excerpt,
  3. SourceDTO? source,
  4. String? title,
})

Implementation

ArticleDTO copyWith(
    {ContentDTO? content,
    String? excerpt,
    SourceDTO? source,
    String? title}) {
  return ArticleDTO(
    content: content ?? this.content,
    excerpt: excerpt ?? this.excerpt,
    source: source ?? this.source,
    title: title ?? this.title,
  );
}