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