crispEmbedUrl method

String crispEmbedUrl({
  1. required String websiteId,
  2. required String locale,
  3. String? userToken,
})

Implementation

String crispEmbedUrl({
  required String websiteId,
  required String locale,
  String? userToken,
}) {
  String url = '$CRISP_BASE_URL/chat/embed/?website_id=$websiteId';

  url += '&locale=$locale';
  if (userToken != null) url += '&token_id=$userToken';

  return url;
}