copyWith method

AppBarEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? title,
  4. int? header,
  5. IconEntity? icon,
  6. String? imageId,
  7. String? iconMenuId,
  8. BackgroundEntity? backgroundOverride,
  9. RgbEntity? iconColorOverride,
  10. RgbEntity? selectedIconColorOverride,
  11. RgbEntity? menuBackgroundColorOverride,
})

Implementation

AppBarEntity copyWith({
  String? documentID,
  String? appId,
  String? title,
  int? header,
  IconEntity? icon,
  String? imageId,
  String? iconMenuId,
  BackgroundEntity? backgroundOverride,
  RgbEntity? iconColorOverride,
  RgbEntity? selectedIconColorOverride,
  RgbEntity? menuBackgroundColorOverride,
}) {
  return AppBarEntity(
    appId: appId ?? this.appId,
    title: title ?? this.title,
    header: header ?? this.header,
    icon: icon ?? this.icon,
    imageId: imageId ?? this.imageId,
    iconMenuId: iconMenuId ?? this.iconMenuId,
    backgroundOverride: backgroundOverride ?? this.backgroundOverride,
    iconColorOverride: iconColorOverride ?? this.iconColorOverride,
    selectedIconColorOverride:
        selectedIconColorOverride ?? this.selectedIconColorOverride,
    menuBackgroundColorOverride:
        menuBackgroundColorOverride ?? this.menuBackgroundColorOverride,
  );
}