copyWith method

SecurityFlagsResult copyWith({
  1. bool? isVpnDetected,
  2. bool? isDnsSpoofed,
  3. bool? isProxyDetected,
})

Mutates the opaque result object with new flag values.

Implementation

SecurityFlagsResult copyWith({
  bool? isVpnDetected,
  bool? isDnsSpoofed,
  bool? isProxyDetected,
}) {
  this.isVpnDetected = isVpnDetected ?? this.isVpnDetected;
  this.isDnsSpoofed = isDnsSpoofed ?? this.isDnsSpoofed;
  this.isProxyDetected = isProxyDetected ?? this.isProxyDetected;
  return this;
}