changeApiKey static method
The function changeApiKey is a function that is used to change the: Profile API key.
Args:
apiKey (String): The apiKey parameter is a string that represents the new Profile API key that you
want to set.
config (InitializationConfig): The apiKey parameter is aconfiguration of the SDK after API key change.
Implementation
static Future<void> changeApiKey(String apiKey, [InitializationConfig? config]) async {
await Dependencies.methodChannel
.invokeMethod('Synerise/changeApiKey', {
"apiKey": apiKey,
"config": config?.asMap()
});
}