copyWith method
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,
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,
);
}