copyWith method

  1. @override
HomeMenuModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? name,
  4. MenuDefModel? menu,
  5. RgbModel? iconColorOverride,
  6. BackgroundModel? backgroundOverride,
  7. RgbModel? popupMenuBackgroundColorOverride,
})
override

Implementation

@override
HomeMenuModel copyWith({
  String? documentID,
  String? appId,
  String? name,
  MenuDefModel? menu,
  RgbModel? iconColorOverride,
  BackgroundModel? backgroundOverride,
  RgbModel? popupMenuBackgroundColorOverride,
}) {
  return HomeMenuModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    name: name ?? this.name,
    menu: menu ?? this.menu,
    iconColorOverride: iconColorOverride ?? this.iconColorOverride,
    backgroundOverride: backgroundOverride ?? this.backgroundOverride,
    popupMenuBackgroundColorOverride: popupMenuBackgroundColorOverride ??
        this.popupMenuBackgroundColorOverride,
  );
}