copyWith method
Space
copyWith(
{ - String? id,
- String? key,
- String? name,
- String? type,
- String? status,
- String? authorId,
- DateTime? createdAt,
- String? homepageId,
- SpaceDescription? description,
- SpaceIcon? icon,
})
Implementation
Space copyWith(
{String? id,
String? key,
String? name,
String? type,
String? status,
String? authorId,
DateTime? createdAt,
String? homepageId,
SpaceDescription? description,
SpaceIcon? icon}) {
return Space(
id: id ?? this.id,
key: key ?? this.key,
name: name ?? this.name,
type: type ?? this.type,
status: status ?? this.status,
authorId: authorId ?? this.authorId,
createdAt: createdAt ?? this.createdAt,
homepageId: homepageId ?? this.homepageId,
description: description ?? this.description,
icon: icon ?? this.icon,
);
}