copyWith method

DocumentEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. String? content,
  5. double? padding,
  6. List<DocumentItemEntity>? images,
  7. BackgroundEntity? background,
  8. StorageConditionsEntity? conditions,
})

Implementation

DocumentEntity copyWith({
  String? documentID,
  String? appId,
  String? description,
  String? content,
  double? padding,
  List<DocumentItemEntity>? images,
  BackgroundEntity? background,
  StorageConditionsEntity? conditions,
}) {
  return DocumentEntity(
    appId: appId ?? this.appId,
    description: description ?? this.description,
    content: content ?? this.content,
    padding: padding ?? this.padding,
    images: images ?? this.images,
    background: background ?? this.background,
    conditions: conditions ?? this.conditions,
  );
}