copyWith method
DrawerModel
copyWith({
- String? documentID,
- String? appId,
- String? name,
- BackgroundModel? backgroundOverride,
- String? headerText,
- String? secondHeaderText,
- double? headerHeight,
- RgbModel? popupMenuBackgroundColor,
- BackgroundModel? headerBackgroundOverride,
- RgbModel? popupMenuBackgroundColorOverride,
override
Implementation
@override
DrawerModel copyWith({
String? documentID,
String? appId,
String? name,
BackgroundModel? backgroundOverride,
String? headerText,
String? secondHeaderText,
double? headerHeight,
RgbModel? popupMenuBackgroundColor,
BackgroundModel? headerBackgroundOverride,
RgbModel? popupMenuBackgroundColorOverride,
MenuDefModel? menu,
}) {
return DrawerModel(
documentID: documentID ?? this.documentID,
appId: appId ?? this.appId,
name: name ?? this.name,
backgroundOverride: backgroundOverride ?? this.backgroundOverride,
headerText: headerText ?? this.headerText,
secondHeaderText: secondHeaderText ?? this.secondHeaderText,
headerHeight: headerHeight ?? this.headerHeight,
popupMenuBackgroundColor:
popupMenuBackgroundColor ?? this.popupMenuBackgroundColor,
headerBackgroundOverride:
headerBackgroundOverride ?? this.headerBackgroundOverride,
popupMenuBackgroundColorOverride: popupMenuBackgroundColorOverride ??
this.popupMenuBackgroundColorOverride,
menu: menu ?? this.menu,
);
}