copyWith method

  1. @override
AlbumModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. List<AlbumEntryModel>? albumEntries,
  4. String? description,
  5. BackgroundModel? backgroundImage,
  6. StorageConditionsModel? conditions,
})
override

Implementation

@override
AlbumModel copyWith({
  String? documentID,
  String? appId,
  List<AlbumEntryModel>? albumEntries,
  String? description,
  BackgroundModel? backgroundImage,
  StorageConditionsModel? conditions,
}) {
  return AlbumModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    albumEntries: albumEntries ?? this.albumEntries,
    description: description ?? this.description,
    backgroundImage: backgroundImage ?? this.backgroundImage,
    conditions: conditions ?? this.conditions,
  );
}