getCurrentDeviceInfo static method

Future<DeviceInfo> getCurrentDeviceInfo()

returns current device details DeviceInfo

Implementation

static Future<DeviceInfo> getCurrentDeviceInfo() async {
  final deviceInfoJson =  await _channel.invokeMethod(GET_DEVICE_INFO);
  return DeviceInfo.fromJson(deviceInfoJson);
}