ProxySourceConfig class
Configuration for proxy sources
Constructors
-
ProxySourceConfig.new({bool useFreeProxyList = true, bool useGeoNode = true, bool useProxyScrape = true, bool useProxyNova = true, bool useHideMyName = true, bool useProxyListTo = true, List<
String> customSources = const []}) -
Creates a new ProxySourceConfig instance
const
- ProxySourceConfig.all()
-
Creates a default configuration with all sources enabled
factory
- ProxySourceConfig.none()
-
Creates a configuration with no sources enabled
factory
-
ProxySourceConfig.only({bool freeProxyList = false, bool geoNode = false, bool proxyScrape = false, bool proxyNova = false, bool hideMyName = false, bool proxyListTo = false, List<
String> custom = const []}) -
Creates a configuration with only the specified sources enabled
factory
Properties
-
customSources
→ List<
String> -
Additional custom proxy sources
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useFreeProxyList → bool
-
Whether to use free-proxy-list.net
final
- useGeoNode → bool
-
Whether to use geonode.com
final
- useHideMyName → bool
-
Whether to use hidemy.name
final
- useProxyListTo → bool
-
Whether to use proxylist.to
final
- useProxyNova → bool
-
Whether to use proxynova.com
final
- useProxyScrape → bool
-
Whether to use proxyscrape.com
final
Methods
-
copyWith(
{bool? useFreeProxyList, bool? useGeoNode, bool? useProxyScrape, bool? useProxyNova, bool? useHideMyName, bool? useProxyListTo, List< String> ? customSources}) → ProxySourceConfig - Creates a copy of this configuration with the specified changes
-
getEnabledSourceUrls(
) → List< String> - Gets the list of enabled proxy source URLs
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited