diff --git a/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_windows.dart b/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_windows.dart index 2b6a95e9fd..217540fe65 100644 --- a/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_windows.dart +++ b/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_windows.dart @@ -53,8 +53,8 @@ class DeviceInfoPlusWindowsPlugin extends DeviceInfoPlatform { final buildLabEx = currentVersionKey.getValueAsString('BuildLabEx') ?? ''; final digitalProductIdValue = currentVersionKey.getValue('DigitalProductId'); - final digitalProductId = digitalProductIdValue != null - && digitalProductIdValue.data is Uint8List + final digitalProductId = digitalProductIdValue != null && + digitalProductIdValue.data is Uint8List ? digitalProductIdValue.data as Uint8List : [] as Uint8List; final displayVersion =