I am implementing an app using Flutter and I want to get the device name, i.e. X's Huawei phone, using device_info package.
I could get it in iOS using this code:
IosDeviceInfo iosDeviceInfo = await deviceInfo.iosInfo;
print('device name ${iosDeviceInfo.name}');
But in Android, I couldn't get the name. I can get many other values like the model, brand and display.
Is there a parameter in this package or another package that I can get Android device's name from it?