copyWith method

PageEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. String? title,
  5. String? appBarId,
  6. String? drawerId,
  7. String? endDrawerId,
  8. String? homeMenuId,
  9. List<BodyComponentEntity>? bodyComponents,
  10. BackgroundEntity? backgroundOverride,
  11. int? layout,
  12. String? gridViewId,
  13. 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,
  );
}