copyWith method

  1. @override
DrawerModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? name,
  4. BackgroundModel? backgroundOverride,
  5. String? headerText,
  6. String? secondHeaderText,
  7. double? headerHeight,
  8. RgbModel? popupMenuBackgroundColor,
  9. BackgroundModel? headerBackgroundOverride,
  10. RgbModel? popupMenuBackgroundColorOverride,
  11. MenuDefModel? menu,
})
override

Implementation

@override
DrawerModel copyWith({
  String? documentID,
  String? appId,
  String? name,
  BackgroundModel? backgroundOverride,
  String? headerText,
  String? secondHeaderText,
  double? headerHeight,
  RgbModel? popupMenuBackgroundColor,
  BackgroundModel? headerBackgroundOverride,
  RgbModel? popupMenuBackgroundColorOverride,
  MenuDefModel? menu,
}) {
  return DrawerModel(
    documentID: documentID ?? this.documentID,
    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,
    menu: menu ?? this.menu,
  );
}