copyWith method
Implementation
ChatBotState copyWith({
List<List<ChatBotMessage>>? messages,
bool? loading,
List<String>? allowedMessage,
String? error,
}) {
return ChatBotState(
messages: messages ?? this.messages,
loading: loading ?? this.loading,
allowedMessage: allowedMessage ?? this.allowedMessage,
error: error ?? this.error,
);
}