copyWith method

SpaceUpdate copyWith({
  1. String? name,
  2. SpaceDescriptionCreate? description,
  3. Map<String, dynamic>? homepage,
  4. String? type,
  5. String? status,
})

Implementation

SpaceUpdate copyWith(
    {String? name,
    SpaceDescriptionCreate? description,
    Map<String, dynamic>? homepage,
    String? type,
    String? status}) {
  return SpaceUpdate(
    name: name ?? this.name,
    description: description ?? this.description,
    homepage: homepage ?? this.homepage,
    type: type ?? this.type,
    status: status ?? this.status,
  );
}