ApiConfig class
This class is used to configure the API endpoints and headers for the Pollinations API.
Constructors
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
-
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
Static Methods
-
getEndpoint(
Api api) → String - Returns the endpoint based on the API type. @param api The API type Api. @return The endpoint URL as a string.
Constants
-
headers
→ const Map<
String, String> - imageEndpoint → const String
- textEndpoint → const String
- timeout → const int