copyWith method
SectionModel
copyWith({
- String? documentID,
- String? title,
- String? description,
- PlatformMediumModel? image,
- RelativeImagePosition? imagePositionRelative,
- SectionImageAlignment? imageAlignment,
- double? imageWidth,
- 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,
);
}