testEventProperties method

Future<void> testEventProperties()

Implementation

Future<void> testEventProperties() async {
  final eventProperties = smartlook.eventProperties;
  await eventProperties.putString('test_key', value: 'test_value');
  final String? value = await eventProperties.getString('test_key');
  assert(value == 'test_value');

  await smartlook.eventProperties.removeString('test_key');
  final String? removedValue = await eventProperties.getString('test_key');
  assert(removedValue == null);

  await smartlook.eventProperties.clear();
  final String? removedValueAfterClear = await eventProperties.getString('test_key');
  assert(removedValueAfterClear == null);
}