checkAuthSettings static method

bool checkAuthSettings(
  1. dynamic onError(
    1. CometChatException e
    )?
)

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;
}