copyWith method
HomeMenuModel
copyWith({
- String? documentID,
- String? appId,
- String? name,
- RgbModel? iconColorOverride,
- BackgroundModel? backgroundOverride,
- RgbModel? popupMenuBackgroundColorOverride,
override
Implementation
@override
HomeMenuModel copyWith({
String? documentID,
String? appId,
String? name,
MenuDefModel? menu,
RgbModel? iconColorOverride,
BackgroundModel? backgroundOverride,
RgbModel? popupMenuBackgroundColorOverride,
}) {
return HomeMenuModel(
documentID: documentID ?? this.documentID,
appId: appId ?? this.appId,
name: name ?? this.name,
menu: menu ?? this.menu,
iconColorOverride: iconColorOverride ?? this.iconColorOverride,
backgroundOverride: backgroundOverride ?? this.backgroundOverride,
popupMenuBackgroundColorOverride: popupMenuBackgroundColorOverride ??
this.popupMenuBackgroundColorOverride,
);
}