getDeviceInfo static method

Future<void> getDeviceInfo()

Collect the device's information.

Implementation

static Future<void> getDeviceInfo() async {
  _packageInfo = await PackageInfo.fromPlatform();
  // Collect Device Information
  await DeviceInfo.initAsync();
}