registerSuperPropertiesOnce method

Future<void> registerSuperPropertiesOnce(
  1. Map<String, dynamic> properties
)

Register super properties for events, only if no other super property with the same names has already been registered.

Calling registerSuperPropertiesOnce will never overwrite existing properties.

  • properties A Map containing the super properties to register.

Implementation

Future<void> registerSuperPropertiesOnce(
  Map<String, dynamic> properties,
) async {
  await _channel.invokeMethod<void>('registerSuperPropertiesOnce',
      <String, dynamic>{'properties': _MixpanelHelper.ensureSerializableProperties(properties)});
}