initializeClient static method
This needs to be called before any other functions or class in this package.
{key} is the API key that you can get from https://botnoi.ai/.
Implementation
static void initializeClient({required String key}) {
try {
BotnoiClient client = BotnoiClient(key: key);
GetIt.I.registerSingleton<BotnoiClient>(client);
} catch (e) {
GetIt.I<BotnoiClient>().key = key;
}
BotnoiChatbot.setErrorCallback((error) => debugPrint(error));
}