copyWith method

SecurityConfig copyWith({
  1. bool? blockVpn,
  2. bool? detectDnsHijack,
})

Creates a copy of SecurityConfig with the given fields replaced by the new values.

blockVpn Whether to flag VPN connections. detectDnsHijack Whether to perform DNS spoofing checks.

Returns a new SecurityConfig instance.

Implementation

SecurityConfig copyWith({
  bool? blockVpn,
  bool? detectDnsHijack,
}) {
  return SecurityConfig(
    blockVpn: blockVpn ?? this.blockVpn,
    detectDnsHijack: detectDnsHijack ?? this.detectDnsHijack,
  );
}