copyWith method

  1. @override
BookletModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. List<SectionModel>? sections,
  5. StorageConditionsModel? conditions,
})
override

Implementation

@override
BookletModel copyWith({
  String? documentID,
  String? appId,
  String? description,
  List<SectionModel>? sections,
  StorageConditionsModel? conditions,
}) {
  return BookletModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    description: description ?? this.description,
    sections: sections ?? this.sections,
    conditions: conditions ?? this.conditions,
  );
}