copyWith method

  1. @override
FeedMenuModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. List<LabelledBodyComponentModel>? bodyComponentsCurrentMember,
  5. List<LabelledBodyComponentModel>? bodyComponentsOtherMember,
  6. RgbModel? itemColor,
  7. RgbModel? selectedItemColor,
  8. BackgroundModel? backgroundOverride,
  9. FeedFrontModel? feedFront,
  10. StorageConditionsModel? conditions,
})
override

Implementation

@override
FeedMenuModel copyWith({
  String? documentID,
  String? appId,
  String? description,
  List<LabelledBodyComponentModel>? bodyComponentsCurrentMember,
  List<LabelledBodyComponentModel>? bodyComponentsOtherMember,
  RgbModel? itemColor,
  RgbModel? selectedItemColor,
  BackgroundModel? backgroundOverride,
  FeedFrontModel? feedFront,
  StorageConditionsModel? conditions,
}) {
  return FeedMenuModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    description: description ?? this.description,
    bodyComponentsCurrentMember:
        bodyComponentsCurrentMember ?? this.bodyComponentsCurrentMember,
    bodyComponentsOtherMember:
        bodyComponentsOtherMember ?? this.bodyComponentsOtherMember,
    itemColor: itemColor ?? this.itemColor,
    selectedItemColor: selectedItemColor ?? this.selectedItemColor,
    backgroundOverride: backgroundOverride ?? this.backgroundOverride,
    feedFront: feedFront ?? this.feedFront,
    conditions: conditions ?? this.conditions,
  );
}