isSecure method
Implementation
bool isSecure([IntegrityCheckConfig config = const IntegrityCheckConfig()]) {
if (config.blockIfRootedOrJailbroken && (isRooted == true || isJailbroken == true)) {
return false;
}
if (config.blockIfDeveloperMode && isDeveloperModeEnabled) {
return false;
}
if (config.blockIfEmulatorOrSimulator && (isEmulator == true || isRealDevice == false)) {
return false;
}
if (hasPotentiallyDangerousApps == true) {
return false;
}
return true;
}