getSuperProperties method
返回当前公共事件属性. return 公共事件属性
Implementation
@override
Future<Map<Object?, Object?>?> getSuperProperties() async {
try {
String? superPropertiesStr = await methodChannel.invokeMethod<String>('ge_getSuperProperties');
if(superPropertiesStr!=null && superPropertiesStr.isNotEmpty){
Map<Object?, Object?> superProperties = jsonDecode(superPropertiesStr);
return superProperties;
}else{
return {};
}
} on PlatformException catch (e) {
print('getSuperProperties fail: ${e.message}');
return null;
}
}