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