copyWith method
ReceiverMessage
copyWith({
- String? id,
- bool? isLoading,
- List<
MessageElement> ? elements, - bool? isFailed,
- bool? isRead,
- String? timestamp,
- double? width,
override
Implementation
@override
ReceiverMessage copyWith({
String? id,
bool? isLoading,
List<MessageElement>? elements,
bool? isFailed,
bool? isRead,
String? timestamp,
double? width,
}) {
final copy = ReceiverMessage(
name: name,
timestamp: timestamp ?? this.timestamp,
elements: elements ?? this.elements,
isLoading: isLoading ?? this.isLoading,
id: id ?? this.id,
width: width ?? this.width,
isRead: isRead ?? this.isRead,
);
return copy;
}