UserAgentRotator class
A rotator for user agents to avoid detection
Constructors
-
UserAgentRotator.new({List<
String> ? userAgents, Random? random}) - Creates a new UserAgentRotator with the given user agents
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addUserAgent(
String userAgent) → void - Adds a user agent to the list
-
getNextUserAgent(
) → String - Gets the next user agent in sequence
-
getRandomUserAgent(
) → String - Gets a random user agent
-
getUserAgents(
) → List< String> - Gets the list of user agents
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeUserAgent(
String userAgent) → void - Removes a user agent from the list
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited