copyWith method
Builds a copy of a ShadertoyWSOptions
apiKey
: The API keyapiPath
: The base api pathbaseUrl
: The Shadertoy base urlpoolMaxAllocatedResources
: The maximum number of resources allocated for parallel callspoolTimeout
: The timeout before giving up on a callretryMaxAttempts
: The maximum number of attempts at a failed requestshaderCount
: The number of shaders fetched on a paged callerrorHandling
: The error handling mode
Implementation
ShadertoyWSOptions copyWith(
{String? apiKey,
String? apiPath,
String? baseUrl,
int? poolMaxAllocatedResources,
int? poolTimeout,
int? retryMaxAttempts,
int? shaderCount,
ErrorMode? errorHandling}) {
return ShadertoyWSOptions(
apiKey: apiKey ?? this.apiKey,
apiPath: apiPath ?? this.apiPath,
baseUrl: baseUrl ?? this.baseUrl,
poolMaxAllocatedResources:
poolMaxAllocatedResources ?? this.poolMaxAllocatedResources,
poolTimeout: poolTimeout ?? this.poolTimeout,
retryMaxAttempts: retryMaxAttempts ?? this.retryMaxAttempts,
shaderCount: shaderCount ?? this.shaderCount,
errorHandling: errorHandling ?? this.errorHandling);
}