initPreferences method

void initPreferences({
  1. String? appId,
  2. String? apiKey,
  3. String? customDomain,
})

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