copyWith method

PublishModel copyWith({
  1. String? projectId,
  2. String? slug,
  3. String? entryLayoutId,
  4. String? entryPageId,
  5. String? entryCanvasId,
  6. List<String>? pages,
  7. Map<String, PublishLayoutInfo>? layouts,
  8. Map<String, String>? layoutIDMap,
  9. List<String>? disabledLayouts,
  10. List<String>? overlayLayoutIds,
  11. List<String>? backdropLayoutIds,
  12. ThemeTokens? theme,
  13. Map<String, PublishFont>? fonts,
  14. Json? apis,
  15. Json? variables,
  16. Map<String, PublishComponentInfo>? components,
  17. AppIdentity? appIdentity,
  18. Breakpoints? breakpoints,
  19. DateTime? lastUpdated,
  20. Json? extra,
})

Implementation

PublishModel copyWith({
  String? projectId,
  String? slug,
  String? entryLayoutId,
  String? entryPageId,
  String? entryCanvasId,
  List<String>? pages,
  Map<String, PublishLayoutInfo>? layouts,
  Map<String, String>? layoutIDMap,
  List<String>? disabledLayouts,
  List<String>? overlayLayoutIds,
  List<String>? backdropLayoutIds,
  ThemeTokens? theme,
  Map<String, PublishFont>? fonts,
  Json? apis,
  Json? variables,
  Map<String, PublishComponentInfo>? components,
  AppIdentity? appIdentity,
  Breakpoints? breakpoints,
  DateTime? lastUpdated,
  Json? extra,
}) =>
    PublishModel(
      projectId: projectId ?? this.projectId,
      slug: slug ?? this.slug,
      entryLayoutId: entryLayoutId ?? this.entryLayoutId,
      entryPageId: entryPageId ?? this.entryPageId,
      entryCanvasId: entryCanvasId ?? this.entryCanvasId,
      pages: pages ?? this.pages,
      layouts: layouts ?? this.layouts,
      layoutIDMap: layoutIDMap ?? this.layoutIDMap,
      disabledLayouts: disabledLayouts ?? this.disabledLayouts,
      overlayLayoutIds: overlayLayoutIds ?? this.overlayLayoutIds,
      backdropLayoutIds: backdropLayoutIds ?? this.backdropLayoutIds,
      theme: theme ?? this.theme,
      fonts: fonts ?? this.fonts,
      apis: apis ?? this.apis,
      variables: variables ?? this.variables,
      components: components ?? this.components,
      appIdentity: appIdentity ?? this.appIdentity,
      breakpoints: breakpoints ?? this.breakpoints,
      lastUpdated: lastUpdated ?? this.lastUpdated,
      extra: extra ?? this.extra,
    );