copyWith method

SecurityFlags copyWith({
  1. bool? isVpnDetected,
  2. bool? isDnsSpoofed,
  3. bool? isProxyDetected,
  4. String? interfaceName,
})

Returns a copy of SecurityFlags with updated values.

Implementation

SecurityFlags copyWith({
  bool? isVpnDetected,
  bool? isDnsSpoofed,
  bool? isProxyDetected,
  String? interfaceName,
}) {
  return SecurityFlags(
    isVpnDetected: isVpnDetected ?? this.isVpnDetected,
    isDnsSpoofed: isDnsSpoofed ?? this.isDnsSpoofed,
    isProxyDetected: isProxyDetected ?? this.isProxyDetected,
    interfaceName: interfaceName ?? this.interfaceName,
  );
}