setEndpoints method
Implementation
setEndpoints(String apiEndpoint, String chatEndpoint) {
if (isEmpty(apiEndpoint) || isEmpty(chatEndpoint)) {
throw ArgumentError(
"'apiEndpoint' and(or) 'chatEndpoint' can not be empty or null");
}
if (!apiEndpoint.startsWith("http")) {
apiEndpoint = "https://$apiEndpoint";
}
this.apiEndpoint = apiEndpoint;
this.chatEndpoint = chatEndpoint;
}