initPreferences method
Implementation
void initPreferences({String? appId, String? apiKey, String? customDomain}) {
if (customDomain != null) {
if (customDomain.startsWith("http"))
url = customDomain;
else
url = "http://$customDomain";
} else {
authKeys = new AuthKeys(appId!, apiKey!);
}
}