copyWith method

  1. @override
AppBarModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? title,
  4. HeaderSelection? header,
  5. IconModel? icon,
  6. MemberMediumModel? image,
  7. MenuDefModel? iconMenu,
  8. BackgroundModel? backgroundOverride,
  9. RgbModel? iconColorOverride,
  10. RgbModel? selectedIconColorOverride,
  11. RgbModel? menuBackgroundColorOverride,
})
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,
  );
}