getDeviceInfo property
get current device info from :local value 'currentDeviceNew' @return device object @throws :Local not found on StorageException
Implementation
Future<Device> get getDeviceInfo async {
try {
_node = await _storageController.get(":Local");
String currentDevice = await _node!
.getValue("deviceDetails")
.then((value) => value!.getValue("en")!);
return Device.convertDeviceFromJson(currentDevice);
} on StorageException {
log("Node :Local not found");
rethrow;
}
}