getDeviceId static method
Implementation
static String getDeviceId(SharedPreferences prefs) {
var deviceId = prefs.getString(Application.uuidKey);
if (deviceId == null) {
var uuid = const Uuid();
deviceId = uuid.v4();
}
return deviceId;
}