ShadertoyHttpOptions class abstract
Base class for the http options
It provides a number of options that can be configured regardless the specific implementation of the client
- Implementers
Constructors
- ShadertoyHttpOptions({String? baseUrl, required bool supportsCookies, int? poolMaxAllocatedResources, int? poolTimeout, int? retryMaxAttempts, int? shaderCount, ErrorMode? errorHandling})
- Builds a ShadertoyHttpOptions
Properties
- baseUrl → String
-
The base url of the shadertoy website
final
- errorHandling → ErrorMode
-
The selected error handling mode
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- poolMaxAllocatedResources → int
-
The maximum number of resources that may be allocated at once in the pool
final
- poolTimeout → int
-
Constrains the maximum time a call to the Shadertoy API can last. If this
value is exceed an exception is thrown for the offending request and for all
the others in the queue
final
- retryMaxAttempts → int
-
The maximum number of atempts before giving up.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shaderCount → int
-
The number of shaders fetched for paged call
final
- supportsCookies → bool
-
If the http client supports cookies
final
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
Constants
- defaultBaseUrl → const String
- Default base URL for Shadertoy website
- defaultPoolMaxAllocatedResources → const int
- The default maximum number of resources that may be allocated at once in the pool
- defaultPoolTimeout → const int
- The default timeout for a request
- defaultRetryMaxAttempts → const int
- The default maximum number of attempts before giving up
- defaultShaderCount → const int
- The default number of shaders fetched for a paged call.