copyWith method

  1. @override
TutorialModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? name,
  4. String? title,
  5. String? description,
  6. List<TutorialEntryModel>? tutorialEntries,
  7. StorageConditionsModel? conditions,
})
override

Implementation

@override
TutorialModel copyWith({
  String? documentID,
  String? appId,
  String? name,
  String? title,
  String? description,
  List<TutorialEntryModel>? tutorialEntries,
  StorageConditionsModel? conditions,
}) {
  return TutorialModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    name: name ?? this.name,
    title: title ?? this.title,
    description: description ?? this.description,
    tutorialEntries: tutorialEntries ?? this.tutorialEntries,
    conditions: conditions ?? this.conditions,
  );
}