copyWith method

  1. @override
PageModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. String? title,
  5. AppBarModel? appBar,
  6. DrawerModel? drawer,
  7. DrawerModel? endDrawer,
  8. HomeMenuModel? homeMenu,
  9. List<BodyComponentModel>? bodyComponents,
  10. BackgroundModel? backgroundOverride,
  11. PageLayout? layout,
  12. GridViewModel? gridView,
  13. StorageConditionsModel? conditions,
})
override

Implementation

@override
PageModel copyWith({
  String? documentID,
  String? appId,
  String? description,
  String? title,
  AppBarModel? appBar,
  DrawerModel? drawer,
  DrawerModel? endDrawer,
  HomeMenuModel? homeMenu,
  List<BodyComponentModel>? bodyComponents,
  BackgroundModel? backgroundOverride,
  PageLayout? layout,
  GridViewModel? gridView,
  StorageConditionsModel? conditions,
}) {
  return PageModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    description: description ?? this.description,
    title: title ?? this.title,
    appBar: appBar ?? this.appBar,
    drawer: drawer ?? this.drawer,
    endDrawer: endDrawer ?? this.endDrawer,
    homeMenu: homeMenu ?? this.homeMenu,
    bodyComponents: bodyComponents ?? this.bodyComponents,
    backgroundOverride: backgroundOverride ?? this.backgroundOverride,
    layout: layout ?? this.layout,
    gridView: gridView ?? this.gridView,
    conditions: conditions ?? this.conditions,
  );
}