SecurityFlags class

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

This structure stores raw findings from the engine's security probes.

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. Examples: wlan0 (Linux WiFi), en0 (macOS WiFi), eth0 (Ethernet).
final
isDnsSpoofed bool
True if the system DNS appears to be providing malicious or redirected results.
final
isProxyDetected bool
True if a system-wide HTTP or SOCKS proxy is active.
final
isVpnDetected bool
True if the active network interface is identified as a tunnel/VPN.
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

Returns a copy of SecurityFlags with updated 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/Clean" default state where no security issues are detected.