copyWith method

  1. @override
SectionModel copyWith({
  1. String? documentID,
  2. String? title,
  3. String? description,
  4. PlatformMediumModel? image,
  5. RelativeImagePosition? imagePositionRelative,
  6. SectionImageAlignment? imageAlignment,
  7. double? imageWidth,
  8. List<LinkModel>? links,
})
override

Implementation

@override
SectionModel copyWith({
  String? documentID,
  String? title,
  String? description,
  PlatformMediumModel? image,
  RelativeImagePosition? imagePositionRelative,
  SectionImageAlignment? imageAlignment,
  double? imageWidth,
  List<LinkModel>? links,
}) {
  return SectionModel(
    documentID: documentID ?? this.documentID,
    title: title ?? this.title,
    description: description ?? this.description,
    image: image ?? this.image,
    imagePositionRelative:
        imagePositionRelative ?? this.imagePositionRelative,
    imageAlignment: imageAlignment ?? this.imageAlignment,
    imageWidth: imageWidth ?? this.imageWidth,
    links: links ?? this.links,
  );
}