integrity static method
Root / jailbreak / emulator / hook / debugger checks. Runs once off the UI thread and is cached
unless refresh (a debugger can attach later).
Implementation
static Future<UDeviceIntegrity> integrity({bool refresh = false}) {
if (refresh) _integrity = null;
return _integrity ??= () async {
final Map<String, Object?>? map = kIsWeb ? UWebBridge.integrity() : await UDeviceChannel.integrity();
return map == null ? const UDeviceIntegrity() : UDeviceIntegrity.fromMap(map);
}();
}