copyWith method

ProxySourceConfig copyWith({
  1. bool? useFreeProxyList,
  2. bool? useGeoNode,
  3. bool? useProxyScrape,
  4. bool? useProxyNova,
  5. bool? useHideMyName,
  6. bool? useProxyListTo,
  7. List<String>? customSources,
})

Creates a copy of this configuration with the specified changes

Implementation

ProxySourceConfig copyWith({
  bool? useFreeProxyList,
  bool? useGeoNode,
  bool? useProxyScrape,
  bool? useProxyNova,
  bool? useHideMyName,
  bool? useProxyListTo,
  List<String>? customSources,
}) {
  return ProxySourceConfig(
    useFreeProxyList: useFreeProxyList ?? this.useFreeProxyList,
    useGeoNode: useGeoNode ?? this.useGeoNode,
    useProxyScrape: useProxyScrape ?? this.useProxyScrape,
    useProxyNova: useProxyNova ?? this.useProxyNova,
    useHideMyName: useHideMyName ?? this.useHideMyName,
    useProxyListTo: useProxyListTo ?? this.useProxyListTo,
    customSources: customSources ?? this.customSources,
  );
}