init method
Implementation
Future<void> init(String appId, String authKey, String authSecret, String accountKey,
{String? apiEndpoint, String? chatEndpoint}) async {
Map<String, Object> data = Map();
data["appId"] = appId;
data["authKey"] = authKey;
data["authSecret"] = authSecret;
data["accountKey"] = accountKey;
if (apiEndpoint != null) {
data["apiEndpoint"] = apiEndpoint;
}
if (chatEndpoint != null) {
data["chatEndpoint"] = chatEndpoint;
}
await _settingsModule.invokeMethod(INIT_METHOD, data);
}