copyWith method

DrawerEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? name,
  4. BackgroundEntity? backgroundOverride,
  5. String? headerText,
  6. String? secondHeaderText,
  7. double? headerHeight,
  8. RgbEntity? popupMenuBackgroundColor,
  9. BackgroundEntity? headerBackgroundOverride,
  10. RgbEntity? popupMenuBackgroundColorOverride,
  11. String? menuId,
})

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,
  );
}