copyWith method

ProxyAuth copyWith({
  1. String? username,
  2. String? password,
  3. ProxyAuthMethod? method,
  4. String? domain,
})

Creates a copy of this ProxyAuth with the given parameters

Implementation

ProxyAuth copyWith({
  String? username,
  String? password,
  ProxyAuthMethod? method,
  String? domain,
}) {
  return ProxyAuth(
    username: username ?? this.username,
    password: password ?? this.password,
    method: method ?? this.method,
    domain: domain ?? this.domain,
  );
}