copyWith method

ShadertoySqliteOptions copyWith({
  1. String? path,
  2. bool? foreignKeysEnabled,
  3. bool? logStatementsEnabled,
  4. WebBackend? webBackend,
  5. String? sqliteWasmPath,
  6. int? shaderCount,
  7. int? userShaderCount,
  8. int? playlistShaderCount,
  9. ErrorMode? errorHandling,
})

Builds a copy of a ShadertoySqliteOptions

  • path: The path to the database
  • foreignKeysEnabled: If the foreign keys are enabled
  • logStatementsEnabled: If true (defaults to false), generated sql statements will be printed before executing.
  • webBackend: The web backend to use
  • sqliteWasmPath: The sqlite wasm path for the wasm backend
  • shaderCount: The number of shaders requested for a paged call
  • userShaderCount: The number of shaders requested for a user paged call
  • playlistShaderCount: The number of shaders requested for a playlist paged call
  • errorHandling: The error handling mode

Implementation

ShadertoySqliteOptions copyWith(
    {String? path,
    bool? foreignKeysEnabled,
    bool? logStatementsEnabled,
    WebBackend? webBackend,
    String? sqliteWasmPath,
    int? shaderCount,
    int? userShaderCount,
    int? playlistShaderCount,
    ErrorMode? errorHandling}) {
  return ShadertoySqliteOptions(
      path: path ?? this.path,
      foreignKeysEnabled: foreignKeysEnabled ?? this.foreignKeysEnabled,
      logStatementsEnabled: logStatementsEnabled ?? this.logStatementsEnabled,
      webBackend: webBackend ?? this.webBackend,
      sqliteWasmPath: sqliteWasmPath ?? this.sqliteWasmPath,
      shaderCount: shaderCount ?? this.shaderCount,
      userShaderCount: userShaderCount ?? this.userShaderCount,
      playlistShaderCount: playlistShaderCount ?? this.playlistShaderCount,
      errorHandling: errorHandling ?? this.errorHandling);
}