getSuperProperties method

  1. @override
Future<Map<Object?, Object?>?> getSuperProperties()
override

返回当前公共事件属性. return 公共事件属性

Implementation

@override
Future<Map<Object?, Object?>?> getSuperProperties() async {
  try {
    String? superPropertiesStr = await methodChannel.invokeMethod<String>('getSuperProperties');
    Map<Object?, Object?> superProperties = jsonDecode(superPropertiesStr!);
    return superProperties;
  } on PlatformException catch (e) {
    print('getSuperProperties fail: ${e.message}');
    return null;
  }
}