copyWith method
PageEntity
copyWith({
- String? documentID,
- String? appId,
- String? description,
- String? title,
- String? appBarId,
- String? drawerId,
- String? endDrawerId,
- String? homeMenuId,
- List<
BodyComponentEntity> ? bodyComponents, - BackgroundEntity? backgroundOverride,
- int? layout,
- String? gridViewId,
- StorageConditionsEntity? conditions,
Implementation
PageEntity copyWith({
String? documentID,
String? appId,
String? description,
String? title,
String? appBarId,
String? drawerId,
String? endDrawerId,
String? homeMenuId,
List<BodyComponentEntity>? bodyComponents,
BackgroundEntity? backgroundOverride,
int? layout,
String? gridViewId,
StorageConditionsEntity? conditions,
}) {
return PageEntity(
appId: appId ?? this.appId,
description: description ?? this.description,
title: title ?? this.title,
appBarId: appBarId ?? this.appBarId,
drawerId: drawerId ?? this.drawerId,
endDrawerId: endDrawerId ?? this.endDrawerId,
homeMenuId: homeMenuId ?? this.homeMenuId,
bodyComponents: bodyComponents ?? this.bodyComponents,
backgroundOverride: backgroundOverride ?? this.backgroundOverride,
layout: layout ?? this.layout,
gridViewId: gridViewId ?? this.gridViewId,
conditions: conditions ?? this.conditions,
);
}