getDeviceModel static method

Future<String> getDeviceModel()

Implementation

static Future<String> getDeviceModel() async {
  if (Platform.isIOS) {
    IosDeviceInfo iosInfo = await InngageProperties.deviceInfo.iosInfo;
    return iosInfo.utsname.machine;
  } else {
    AndroidDeviceInfo androidInfo =
        await InngageProperties.deviceInfo.androidInfo;
    return androidInfo.model;
  }
}