copyWith method
Space
copyWith({
- int? id,
- String? key,
- String? name,
- Icon? icon,
- SpaceDescriptionValue? description,
- Content? homepage,
- String? type,
- SpaceMetadata? metadata,
- List<
OperationCheckResult> ? operations, - List<
SpacePermission> ? permissions, - String? status,
- SpaceSettings? settings,
- Theme? theme,
- LookAndFeel? lookAndFeel,
- SpaceHistory? history,
- SpaceExpandable? expandable,
- GenericLinks? links,
Implementation
Space copyWith(
{int? id,
String? key,
String? name,
Icon? icon,
SpaceDescriptionValue? description,
Content? homepage,
String? type,
SpaceMetadata? metadata,
List<OperationCheckResult>? operations,
List<SpacePermission>? permissions,
String? status,
SpaceSettings? settings,
Theme? theme,
LookAndFeel? lookAndFeel,
SpaceHistory? history,
SpaceExpandable? expandable,
GenericLinks? links}) {
return Space(
id: id ?? this.id,
key: key ?? this.key,
name: name ?? this.name,
icon: icon ?? this.icon,
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,
expandable: expandable ?? this.expandable,
links: links ?? this.links,
);
}