copyWith method

Room copyWith({
  1. String? id,
  2. String? emailAddress,
  3. String? displayName,
  4. Address? address,
  5. GeoCoordinates? geoCoordinates,
  6. String? phone,
  7. String? nickname,
  8. String? label,
  9. int? capacity,
  10. String? building,
  11. int? floorNumber,
  12. bool? isManaged,
  13. bool? isWheelChairAccessible,
  14. String? bookingType,
  15. List<String>? tags,
  16. String? audioDeviceName,
  17. String? videoDeviceName,
  18. String? displayDevice,
})

Creates a copy of this Room but with the given fields replaced with the new values.

Implementation

Room copyWith({
  String? id,
  String? emailAddress,
  String? displayName,
  Address? address,
  GeoCoordinates? geoCoordinates,
  String? phone,
  String? nickname,
  String? label,
  int? capacity,
  String? building,
  int? floorNumber,
  bool? isManaged,
  bool? isWheelChairAccessible,
  String? bookingType,
  List<String>? tags,
  String? audioDeviceName,
  String? videoDeviceName,
  String? displayDevice,
}) {
  return Room(
    id: id ?? this.id,
    emailAddress: emailAddress ?? this.emailAddress,
    displayName: displayName ?? this.displayName,
    address: address ?? this.address,
    geoCoordinates: geoCoordinates ?? this.geoCoordinates,
    phone: phone ?? this.phone,
    nickname: nickname ?? this.nickname,
    label: label ?? this.label,
    capacity: capacity ?? this.capacity,
    building: building ?? this.building,
    floorNumber: floorNumber ?? this.floorNumber,
    isManaged: isManaged ?? this.isManaged,
    isWheelChairAccessible:
        isWheelChairAccessible ?? this.isWheelChairAccessible,
    bookingType: bookingType ?? this.bookingType,
    tags: tags ?? this.tags,
    audioDeviceName: audioDeviceName ?? this.audioDeviceName,
    videoDeviceName: videoDeviceName ?? this.videoDeviceName,
    displayDevice: displayDevice ?? this.displayDevice,
  );
}