queryDeviceInfo method Null safety

Future<DeviceModel> queryDeviceInfo()

Used to return Device Info

Will return:

  • Device SDK.
  • Device Release.
  • Device Code.
  • Device Type.

Platforms:

AndroidIOSWeb
✔️✔️✔️

See more about platforms support

Implementation

Future<DeviceModel> queryDeviceInfo() async {
  return platform.queryDeviceInfo();
}