copyWith method

PageBlockEmbeddedPost copyWith({
  1. String? url,
  2. String? author,
  3. Photo? authorPhoto,
  4. int? date,
  5. List<PageBlock>? blocks,
  6. PageBlockCaption? caption,
})

Implementation

PageBlockEmbeddedPost copyWith({
  String? url,
  String? author,
  Photo? authorPhoto,
  int? date,
  List<PageBlock>? blocks,
  PageBlockCaption? caption,
}) => PageBlockEmbeddedPost(
  url: url ?? this.url,
  author: author ?? this.author,
  authorPhoto: authorPhoto ?? this.authorPhoto,
  date: date ?? this.date,
  blocks: blocks ?? this.blocks,
  caption: caption ?? this.caption,
);