copyWith method
AppBarModel
copyWith({
- String? documentID,
- String? appId,
- String? title,
- HeaderSelection? header,
- IconModel? icon,
- MemberMediumModel? image,
- MenuDefModel? iconMenu,
- BackgroundModel? backgroundOverride,
- RgbModel? iconColorOverride,
- RgbModel? selectedIconColorOverride,
override
Implementation
@override
AppBarModel copyWith({
String? documentID,
String? appId,
String? title,
HeaderSelection? header,
IconModel? icon,
MemberMediumModel? image,
MenuDefModel? iconMenu,
BackgroundModel? backgroundOverride,
RgbModel? iconColorOverride,
RgbModel? selectedIconColorOverride,
RgbModel? menuBackgroundColorOverride,
}) {
return AppBarModel(
documentID: documentID ?? this.documentID,
appId: appId ?? this.appId,
title: title ?? this.title,
header: header ?? this.header,
icon: icon ?? this.icon,
image: image ?? this.image,
iconMenu: iconMenu ?? this.iconMenu,
backgroundOverride: backgroundOverride ?? this.backgroundOverride,
iconColorOverride: iconColorOverride ?? this.iconColorOverride,
selectedIconColorOverride:
selectedIconColorOverride ?? this.selectedIconColorOverride,
menuBackgroundColorOverride:
menuBackgroundColorOverride ?? this.menuBackgroundColorOverride,
);
}