resetStaticState static method

Future<void> resetStaticState()

Reset all common properties. Must be called when the SDK is re-initialized to prevent stale user-set properties from a previous session leaking into the new one.

Implementation

static Future<void> resetStaticState() async {
  await _lock.synchronized(() {
    _commonProperties.clear();
  });
}