copyWith method

SpaceCreate copyWith({
  1. String? key,
  2. String? name,
  3. SpaceDescriptionCreate? description,
  4. 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,
  );
}