copyWith method

  1. @override
PresentationModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. List<BodyComponentModel>? bodyComponents,
  5. PlatformMediumModel? image,
  6. PresentationRelativeImagePosition? imagePositionRelative,
  7. PresentationImageAlignment? imageAlignment,
  8. double? imageWidth,
  9. 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,
  );
}