getDeviceInfo method

  1. @override
Future<void> getDeviceInfo()
override

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();
  }
}