copyWith method

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

Implementation

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