copyWith method
ShadertoySiteOptions
copyWith({
- String? user,
- String? password,
- String? cookieName,
- int? userShaderCount,
- int? playlistShaderCount,
- int? pageResultsShaderCount,
- int? pageUserShaderCount,
- int? pagePlaylistShaderCount,
- String? baseUrl,
- int? poolMaxAllocatedResources,
- int? poolTimeout,
- int? retryMaxAttempts,
- ErrorMode? errorHandling,
Builds a copy of a ShadertoySiteOptions
user
: The Shadertoy userpassword
: The Shadertoy passwordcookieName
: The Shadertoy cookie nameuserShaderCount
: The number of shaders requested for a user paged callplaylistShaderCount
: The number of shaders requested for a playlist paged callpageResultsShaderCount
: The number of shaders presented in the Shadertoy results pagepageUserShaderCount
: The number of shaders presented in the Shadertoy user pagepagePlaylistShaderCount
: The number of shaders presented in the Shadertoy playlist pagebaseUrl
: 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 requesterrorHandling
: The error handling mode
Implementation
ShadertoySiteOptions copyWith(
{String? user,
String? password,
String? cookieName,
int? userShaderCount,
int? playlistShaderCount,
int? pageResultsShaderCount,
int? pageUserShaderCount,
int? pagePlaylistShaderCount,
String? baseUrl,
int? poolMaxAllocatedResources,
int? poolTimeout,
int? retryMaxAttempts,
ErrorMode? errorHandling}) {
return ShadertoySiteOptions(
user: user ?? this.user,
password: password ?? this.password,
cookieName: cookieName ?? this.cookieName,
userShaderCount: userShaderCount ?? this.userShaderCount,
playlistShaderCount: playlistShaderCount ?? this.playlistShaderCount,
pageResultsShaderCount:
pageResultsShaderCount ?? this.pageResultsShaderCount,
pageUserShaderCount: pageUserShaderCount ?? this.pageUserShaderCount,
pagePlaylistShaderCount:
pagePlaylistShaderCount ?? this.pagePlaylistShaderCount,
baseUrl: baseUrl ?? this.baseUrl,
poolMaxAlocatedResources:
poolMaxAllocatedResources ?? this.poolMaxAllocatedResources,
poolTimeout: poolTimeout ?? this.poolTimeout,
retryMaxAttempts: retryMaxAttempts ?? this.retryMaxAttempts,
errorHandling: errorHandling ?? this.errorHandling);
}