Use case
The device_info_plus plugin is often used to get more device information for crash reports or similar reasons.
In this use-case it's really cumbersome to use because you first have to detect the platform and then use the correct getter for the current device information. Therefor, it would be really useful if there's a method which gets the current device information.
Proposal
I would like to have a method like the following example:
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
// gets current device information
Map<String, dynamic> deviceInfo = await deviceInfo.info;
Use case
The
device_info_plusplugin is often used to get more device information for crash reports or similar reasons.In this use-case it's really cumbersome to use because you first have to detect the platform and then use the correct getter for the current device information. Therefor, it would be really useful if there's a method which gets the current device information.
Proposal
I would like to have a method like the following example: