getId static method

Future<String> getId()

Implementation

static Future<String> getId() async {
  var deviceInfo = DeviceInfoPlugin();
  if (Platform.isIOS) {
    IosDeviceInfo iosDeviceInfo = await deviceInfo.iosInfo;
    return iosDeviceInfo.identifierForVendor ?? await _getUuid();
  } else {
    return await _getUuid();
  }
}