copyWith method
ContentCreateSpace
copyWith({
- int? id,
- String? name,
- Icon? icon,
- GlobalSpaceIdentifier? identifiers,
- ContentCreateSpaceDescription? description,
- Content? homepage,
- String? type,
- ContentCreateSpaceMetadata? metadata,
- List<
OperationCheckResult> ? operations, - List<
SpacePermission> ? permissions, - String? status,
- SpaceSettings? settings,
- Theme? theme,
- LookAndFeel? lookAndFeel,
- ContentCreateSpaceHistory? history,
- String? key,
- Map<
String, dynamic> ? links,
Implementation
ContentCreateSpace copyWith(
{int? id,
String? name,
Icon? icon,
GlobalSpaceIdentifier? identifiers,
ContentCreateSpaceDescription? description,
Content? homepage,
String? type,
ContentCreateSpaceMetadata? metadata,
List<OperationCheckResult>? operations,
List<SpacePermission>? permissions,
String? status,
SpaceSettings? settings,
Theme? theme,
LookAndFeel? lookAndFeel,
ContentCreateSpaceHistory? history,
String? key,
Map<String, dynamic>? links}) {
return ContentCreateSpace(
id: id ?? this.id,
name: name ?? this.name,
icon: icon ?? this.icon,
identifiers: identifiers ?? this.identifiers,
description: description ?? this.description,
homepage: homepage ?? this.homepage,
type: type ?? this.type,
metadata: metadata ?? this.metadata,
operations: operations ?? this.operations,
permissions: permissions ?? this.permissions,
status: status ?? this.status,
settings: settings ?? this.settings,
theme: theme ?? this.theme,
lookAndFeel: lookAndFeel ?? this.lookAndFeel,
history: history ?? this.history,
key: key ?? this.key,
links: links ?? this.links,
);
}