copyWith method
PresentationModel
copyWith({
- String? documentID,
- String? appId,
- String? description,
- List<
BodyComponentModel> ? bodyComponents, - PlatformMediumModel? image,
- PresentationRelativeImagePosition? imagePositionRelative,
- PresentationImageAlignment? imageAlignment,
- double? imageWidth,
- StorageConditionsModel? conditions,
override
Implementation
@override
PresentationModel copyWith({
String? documentID,
String? appId,
String? description,
List<BodyComponentModel>? bodyComponents,
PlatformMediumModel? image,
PresentationRelativeImagePosition? imagePositionRelative,
PresentationImageAlignment? imageAlignment,
double? imageWidth,
StorageConditionsModel? conditions,
}) {
return PresentationModel(
documentID: documentID ?? this.documentID,
appId: appId ?? this.appId,
description: description ?? this.description,
bodyComponents: bodyComponents ?? this.bodyComponents,
image: image ?? this.image,
imagePositionRelative:
imagePositionRelative ?? this.imagePositionRelative,
imageAlignment: imageAlignment ?? this.imageAlignment,
imageWidth: imageWidth ?? this.imageWidth,
conditions: conditions ?? this.conditions,
);
}