SecurityFlags class

Internal representation of security-related attributes for the current connection.

Available extensions

Constructors

SecurityFlags({required bool isVpnDetected, required bool isDnsSpoofed, required bool isProxyDetected, required String interfaceName})
const

Properties

hashCode int
The hash code for this object.
no setteroverride
interfaceName String
The system-assigned name of the active network interface (e.g., 'en0', 'wlan0').
final
isDnsSpoofed bool
True if DNS results differ significantly from trusted resolvers, suggesting tampering.
final
isProxyDetected bool
True if a system-level HTTP/HTTPS proxy is detected.
final
isVpnDetected bool
True if the active interface is identified as a VPN or tunnel (e.g., 'tun0', 'utun').
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? isVpnDetected, bool? isDnsSpoofed, bool? isProxyDetected, String? interfaceName}) SecurityFlags

Available on SecurityFlags, provided by the SecurityFlagsCopyWith extension

Creates a copy of SecurityFlags with the given fields replaced by the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

default_() Future<SecurityFlags>
Returns a "safe" default state: