copyWith method
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,
);
}