UltraSecureFlutterKit class
Main class for Ultra Secure Flutter Kit
A comprehensive Flutter security package providing Protect AI-style protection:
- Root/jailbreak detection
- Secure storage with AES-256 encryption
- Screenshot blocking
- SSL pinning
- Network monitoring
- Behavior monitoring
- Real-time threat detection
- Automated security response
- Data leakage prevention
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isProtected → bool
-
Check if secure_monitor is initialized and protected
no setter
- protectionStatus → ProtectionStatus
-
Get current protection status
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secureMonitor → SecureMonitorService
-
Get secure_monitor service instance
no setter
-
securityMetrics
→ Map<
String, dynamic> -
Get security metrics
no setter
-
statusStream
→ Stream<
ProtectionStatus> -
Listen to protection status changes
no setter
-
threatStream
→ Stream<
SecurityThreat> -
Listen to security threats
no setter
Methods
-
applyAntiTampering(
) → Future< void> - Apply anti-tampering measures
-
authenticateWithBiometrics(
{String localizedReason = 'Please authenticate to continue', String? cancelButton = 'Cancel', String? goToSettingsButton = 'Settings', String? goToSettingsDescription = 'Please set up your biometrics', bool stickyAuth = false, bool useErrorDialogs = true, bool biometricOnly = false}) → Future< bool> - Authenticate with biometrics
-
clearAllSecureData(
) → Future< void> - Clear all secure data
-
configureScreenshotBlocking(
{required bool enabled, String? reason}) → Future< void> - Configure screenshot blocking preference Call this method to set user's preferred screenshot blocking setting
-
configureSSLPinning(
List< String> certificates, List<String> publicKeys) → Future<void> - Configure SSL pinning
-
decryptSensitiveData(
String encryptedData) → Future< String> - Decrypt sensitive data
-
disableScreenCaptureProtection(
) → Future< void> - Disable screen capture protection
-
enableNetworkMonitoring(
) → Future< void> - Enable network monitoring
-
enableRealTimeMonitoring(
) → Future< void> - Enable real-time monitoring
-
enableScreenCaptureProtection(
) → Future< void> - Enable screen capture protection
-
enableSecureFlag(
) → Future< void> - Enable secure flag
-
encryptSensitiveData(
String data) → Future< String> - Encrypt sensitive data
-
generateSecureRandom(
{int length = 32}) → String - Generate secure random data
-
getAppSignature(
) → Future< String> - Get app signature
-
getAvailableBiometrics(
) → Future< List< BiometricType> > - Get available biometric types
-
getBehaviorData(
) → BehaviorData - Get behavior data
-
getDeviceFingerprint(
) → Future< String> - Get device fingerprint
-
getDeviceSecurityStatus(
) → Future< DeviceSecurityStatus> - Get device security status
-
getPlatformVersion(
) → Future< String?> - Get platform version
-
getUnexpectedCertificates(
) → Future< List< String> > - Get unexpected certificates
-
getUsbConnectionStatus(
) → Future< Map< String, dynamic> > - Get USB connection status details
-
hasProxySettings(
) → Future< bool> - Check for proxy settings
-
hasVPNConnection(
) → Future< bool> - Check for VPN connection
-
initializeSecureMonitor(
SecurityConfig config) → Future< void> - Initialize secure_monitor-style comprehensive security This provides enterprise-grade security protection similar to secure_monitor
-
isBiometricAvailable(
) → Future< bool> - Check if biometric authentication is available
-
isDebuggerAttached(
) → Future< bool> - Check if debugger is attached
-
isDeveloperModeEnabled(
) → Future< bool> - Check if developer mode is enabled
-
isEmulator(
) → Future< bool> - Check if running on emulator
-
isJailbroken(
) → Future< bool> - Check if device is jailbroken (iOS)
-
isRooted(
) → Future< bool> - Check if device is rooted (Android)
-
isScreenCaptureBlocked(
) → Future< bool> - Check if screen capture is blocked
-
isUsbCableAttached(
) → Future< bool> - Check if USB cable is attached
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openDeveloperOptionsSettings(
) → Future< void> - Open Developer Options settings
-
preventReverseEngineering(
) → Future< void> - Prevent reverse engineering
-
recordApiHit(
) → void - Record behavior events
-
recordAppLaunch(
) → void -
recordScreenTouch(
) → void -
sanitizeInput(
String input) → String - Sanitize input data
-
secureApiCall(
String url, Map< String, dynamic> data, {Map<String, String> ? headers, String method = 'POST'}) → Future<Map< String, dynamic> > - Secure API call with Protect AI protection
-
secureDelete(
String key) → Future< void> - Delete secure data
-
secureRetrieve(
String key) → Future< String?> - Secure data retrieval with Protect AI protection
-
secureStore(
String key, String value, {Duration? expiresIn}) → Future< void> - Secure data storage with Protect AI protection
-
toString(
) → String -
A string representation of this object.
inherited
-
updateScreenshotBlocking(
bool enabled) → Future< void> - Update screenshot blocking configuration
-
verifyAppIntegrity(
) → Future< bool> - Verify app integrity
-
verifySSLPinning(
String url) → Future< bool> - Verify SSL pinning for a URL
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited