getDeviceInformation function
Retrieves the device information from the storage configuration. Throws an exception if the device information is not defined.
Implementation
Future<dynamic> getDeviceInformation() async {
final device = await getStorageItem(key: 'deviceInformation');
if (device == null) {
throw Exception('Error: Device is not defined.');
}
return device;
}