copyWith method
Creates a copy of this ProxyModel with the given parameters
Implementation
ProxyModel copyWith({
String? ip,
int? port,
String? countryCode,
bool? isHttps,
String? anonymityLevel,
String? region,
String? isp,
double? speed,
bool? supportsWebsockets,
ProxyProtocol? protocol,
ProxyAuth? auth,
int? lastChecked,
int? responseTime,
ProxyScore? score,
}) {
return ProxyModel(
ip: ip ?? this.ip,
port: port ?? this.port,
countryCode: countryCode ?? this.countryCode,
isHttps: isHttps ?? this.isHttps,
anonymityLevel: anonymityLevel ?? this.anonymityLevel,
region: region ?? this.region,
isp: isp ?? this.isp,
speed: speed ?? this.speed,
supportsWebsockets: supportsWebsockets ?? this.supportsWebsockets,
protocol: protocol ?? this.protocol,
auth: auth ?? this.auth,
lastChecked: lastChecked ?? this.lastChecked,
responseTime: responseTime ?? this.responseTime,
score: score ?? this.score,
);
}