withPlayIntegrity method

DeviceIntegrityResult withPlayIntegrity({
  1. String? token,
  2. String? error,
})

Returns a new instance with updated Play Integrity data.

Implementation

DeviceIntegrityResult withPlayIntegrity({String? token, String? error}) {
  return DeviceIntegrityResult(
    isDeveloperModeEnabled: isDeveloperModeEnabled,
    isRooted: isRooted,
    isEmulator: isEmulator,
    hasPotentiallyDangerousApps: hasPotentiallyDangerousApps,
    isJailbroken: isJailbroken,
    isRealDevice: isRealDevice,
    playIntegrityToken: token,
    playIntegrityError: error,
  );
}