fixed init of variables in class first before using them in deviceInfo
did not use device id from state variable (shared pref map)
instead passed device id back from func as it is created on fly
this reduces risk of state variable changing over time as it is accessed in future
simplified ternary as it would always return null in both cases
the device id passed as method return type to be used
did not fetch device id from state (shared pref map)
https://wizrocket.atlassian.net/browse/SDK-3671
fixed init of variables in class first before using them in deviceInfo did not use device id from state variable (shared pref map) instead passed device id back from func as it is created on fly this reduces risk of state variable changing over time as it is accessed in future simplified ternary as it would always return null in both cases the device id passed as method return type to be used did not fetch device id from state (shared pref map)