getCurrentPresetProperties method

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

返回当前预置事件属性. returns 预置事件属性

Implementation

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