copyWith method
DrawerEntity
copyWith({
- String? documentID,
- String? appId,
- String? name,
- BackgroundEntity? backgroundOverride,
- String? headerText,
- String? secondHeaderText,
- double? headerHeight,
- RgbEntity? popupMenuBackgroundColor,
- BackgroundEntity? headerBackgroundOverride,
- RgbEntity? popupMenuBackgroundColorOverride,
Implementation
DrawerEntity copyWith({
String? documentID,
String? appId,
String? name,
BackgroundEntity? backgroundOverride,
String? headerText,
String? secondHeaderText,
double? headerHeight,
RgbEntity? popupMenuBackgroundColor,
BackgroundEntity? headerBackgroundOverride,
RgbEntity? popupMenuBackgroundColorOverride,
String? menuId,
}) {
return DrawerEntity(
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,
menuId: menuId ?? this.menuId,
);
}