getDeviceInfo method
Collect the device's information.
Implementation
@override
Future<void> getDeviceInfo() async {
// There's 'no device' while testing and so don't collect device info.
// if (!inFlutterTest) {
if (inWidgetsFlutterBinding) {
// Assign _packageInfo
await super.getDeviceInfo();
// Collect Device Information
await DeviceInfo.initAsync();
}
}