regenerateDeviceId method

Future<void> regenerateDeviceId()

Regenerates a new random deviceId for current user. Note: this is not recommended unless you know what you are doing. This can be used in conjunction with setUserId(null) to anonymize users after they log out. With a null userId and a completely new deviceId, the current user would appear as a brand new user in dashboard.

Implementation

Future<void> regenerateDeviceId() async {
  return await _channel.invokeMethod(
      'regenerateDeviceId', jsonEncode(_baseProperties()));
}