copyWith method

FeedMenuEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. List<LabelledBodyComponentEntity>? bodyComponentsCurrentMember,
  5. List<LabelledBodyComponentEntity>? bodyComponentsOtherMember,
  6. RgbEntity? itemColor,
  7. RgbEntity? selectedItemColor,
  8. BackgroundEntity? backgroundOverride,
  9. String? feedFrontId,
  10. StorageConditionsEntity? conditions,
})

Implementation

FeedMenuEntity copyWith({
  String? documentID,
  String? appId,
  String? description,
  List<LabelledBodyComponentEntity>? bodyComponentsCurrentMember,
  List<LabelledBodyComponentEntity>? bodyComponentsOtherMember,
  RgbEntity? itemColor,
  RgbEntity? selectedItemColor,
  BackgroundEntity? backgroundOverride,
  String? feedFrontId,
  StorageConditionsEntity? conditions,
}) {
  return FeedMenuEntity(
    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,
    feedFrontId: feedFrontId ?? this.feedFrontId,
    conditions: conditions ?? this.conditions,
  );
}