getUniqueId static method

Future<String> getUniqueId()

Implementation

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