copyWith method
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,
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,
);
}