copyWith method
Implementation
ChatState copyWith({
List<Message_text>? messages,
// Map<String, File>? cachedImages,
bool? isLoading,
}) {
return ChatState(
messages: messages ?? this.messages,
// cachedImages: cachedImages ?? this.cachedImages,
isLoading: isLoading ?? this.isLoading,
);
}