newShadertoySiteClient function

ShadertoySite newShadertoySiteClient({
  1. String? user,
  2. String? password,
  3. String? cookieName,
  4. int? userShaderCount,
  5. int? playlistShaderCount,
  6. int? pageResultsShaderCount,
  7. int? pageUserShaderCount,
  8. int? pagePlaylistShaderCount,
  9. String? baseUrl,
  10. int? poolMaxAllocatedResources,
  11. int? poolTimeout,
  12. int? retryMaxAttempts,
  13. int? shaderCount,
  14. ErrorMode? errorHandling,
  15. Dio? client,
})

Creates ShadertoySite backed by a ShadertoySiteClient

  • user: The Shadertoy user
  • password: The Shadertoy password
  • cookieName: The Shadertoy cookie name
  • userShaderCount: The number of shaders requested for a user paged call
  • playlistShaderCount: The number of shaders requested for a playlist paged call
  • pageResultsShaderCount: The number of shaders presented in the Shadertoy results page
  • pageUserShaderCount: The number of shaders presented in the Shadertoy user page
  • pagePlaylistShaderCount: The number of shaders presented in the Shadertoy playlist page
  • baseUrl: The Shadertoy base url
  • poolMaxAllocatedResources: The maximum number of resources allocated for parallel calls
  • poolTimeout: The timeout before giving up on a call
  • retryMaxAttempts: The maximum number of attempts at a failed request
  • shaderCount: The number of shaders fetched in a paged call
  • errorHandling: The error handling mode
  • client: A pre-initialized Dio client

Implementation

ShadertoySite newShadertoySiteClient(
    {String? user,
    String? password,
    String? cookieName,
    int? userShaderCount,
    int? playlistShaderCount,
    int? pageResultsShaderCount,
    int? pageUserShaderCount,
    int? pagePlaylistShaderCount,
    String? baseUrl,
    int? poolMaxAllocatedResources,
    int? poolTimeout,
    int? retryMaxAttempts,
    int? shaderCount,
    ErrorMode? errorHandling,
    Dio? client}) {
  return ShadertoySiteClient(
      ShadertoySiteOptions(
          user: user,
          password: password,
          cookieName: cookieName,
          userShaderCount: userShaderCount,
          playlistShaderCount: playlistShaderCount,
          pageResultsShaderCount: pageResultsShaderCount,
          pageUserShaderCount: pageUserShaderCount,
          pagePlaylistShaderCount: pagePlaylistShaderCount,
          baseUrl: baseUrl,
          poolMaxAlocatedResources: poolMaxAllocatedResources,
          poolTimeout: poolTimeout,
          retryMaxAttempts: retryMaxAttempts,
          shaderCount: shaderCount,
          errorHandling: errorHandling),
      client: client);
}