copyWith method
FeedMenuModel
copyWith({
- String? documentID,
- String? appId,
- String? description,
- List<
LabelledBodyComponentModel> ? bodyComponentsCurrentMember, - List<
LabelledBodyComponentModel> ? bodyComponentsOtherMember, - RgbModel? itemColor,
- RgbModel? selectedItemColor,
- BackgroundModel? backgroundOverride,
- FeedFrontModel? feedFront,
- 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,
);
}