withPlayIntegrity method
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,
);
}