copyWith method

  1. @override
DocumentModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. String? content,
  5. double? padding,
  6. List<DocumentItemModel>? images,
  7. BackgroundModel? background,
  8. StorageConditionsModel? conditions,
})
override

Implementation

@override
DocumentModel copyWith({
  String? documentID,
  String? appId,
  String? description,
  String? content,
  double? padding,
  List<DocumentItemModel>? images,
  BackgroundModel? background,
  StorageConditionsModel? conditions,
}) {
  return DocumentModel(
    documentID: documentID ?? this.documentID,
    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,
  );
}