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