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