copyWith method

SectionEntity copyWith({
  1. String? documentID,
  2. String? title,
  3. String? description,
  4. String? imageId,
  5. int? imagePositionRelative,
  6. int? imageAlignment,
  7. double? imageWidth,
  8. List<LinkEntity>? links,
})

Implementation

SectionEntity copyWith({
  String? documentID,
  String? title,
  String? description,
  String? imageId,
  int? imagePositionRelative,
  int? imageAlignment,
  double? imageWidth,
  List<LinkEntity>? links,
}) {
  return SectionEntity(
    title: title ?? this.title,
    description: description ?? this.description,
    imageId: imageId ?? this.imageId,
    imagePositionRelative:
        imagePositionRelative ?? this.imagePositionRelative,
    imageAlignment: imageAlignment ?? this.imageAlignment,
    imageWidth: imageWidth ?? this.imageWidth,
    links: links ?? this.links,
  );
}