copyWith method

ContentChildren copyWith({
  1. ContentArray? attachment,
  2. ContentArray? comment,
  3. ContentArray? page,
  4. ContentChildrenExpandable? expandable,
  5. GenericLinks? links,
})

Implementation

ContentChildren copyWith(
    {ContentArray? attachment,
    ContentArray? comment,
    ContentArray? page,
    ContentChildrenExpandable? expandable,
    GenericLinks? links}) {
  return ContentChildren(
    attachment: attachment ?? this.attachment,
    comment: comment ?? this.comment,
    page: page ?? this.page,
    expandable: expandable ?? this.expandable,
    links: links ?? this.links,
  );
}