setDynamicSuperProperties static method
Set dynamic public properties. Each event uploaded after that will contain a public event attribute.
f
is a function that retuning valid properties. It will be called in every track to get the dynamic super properties.
appId
It is used in multi-instance scenarios. If there is only one instance, it is recommended not to pass
Implementation
static void setDynamicSuperProperties(Map<String, dynamic> f(),
{String? appId}) {
ThinkingAnalyticsAPI? instance = _getInstanceByAppId(appId);
instance?.setDynamicSuperProperties(f);
}