copyWith method
SpaceCreate
copyWith({
- String? key,
- String? name,
- SpaceDescriptionCreate? description,
- List<
SpacePermissionCreate> ? permissions,
Implementation
SpaceCreate copyWith(
{String? key,
String? name,
SpaceDescriptionCreate? description,
List<SpacePermissionCreate>? permissions}) {
return SpaceCreate(
key: key ?? this.key,
name: name ?? this.name,
description: description ?? this.description,
permissions: permissions ?? this.permissions,
);
}