checkAuthSettings static method
Implementation
static bool checkAuthSettings(Function(CometChatException e)? onError) {
if (authenticationSettings == null) {
if (onError != null) {
onError(CometChatException("ERR", "Authentication null",
"Populate uiKitSettings before initializing"));
}
return false;
}
if (authenticationSettings!.appId == null) {
if (onError != null) {
onError(CometChatException("appIdErr", "APP ID null",
"Populate appId in uiKitSettings before initializing"));
}
return false;
}
return true;
}