getCurrentUUID function
Get Current Device, User UUID
Implementation
Future getCurrentUUID() async {
try{
Node local = await Storage.controller.get(Types.local);
NodeValue? currentUser = await local.getValue('currentUser');
NodeValue? currentDevice = await local.getValue('currentDevice');
Storage.userUUID = currentUser!.value;
Storage.deviceUUID = currentDevice!.value;
}catch(e){
logger.i(e.toString());
}
}