setDeviceId method
Implementation
Future<void> setDeviceId(final String deviceId) async {
final storage = HiveStorageService.instance;
String? previousDeviceId = await storage.getDeviceId();
if (previousDeviceId == null || previousDeviceId != deviceId) {
await storage.setDeviceId(deviceId);
_deviceIdChanged = true;
}
}