copyWith method
Builds a copy of a ShadertoySqliteOptions
path
: The path to the databaseforeignKeysEnabled
: If the foreign keys are enabledlogStatementsEnabled
: If true (defaults tofalse
), generated sql statements will be printed before executing.webBackend
: The web backend to usesqliteWasmPath
: The sqlite wasm path for the wasm backendshaderCount
: The number of shaders requested for a paged calluserShaderCount
: The number of shaders requested for a user paged callplaylistShaderCount
: The number of shaders requested for a playlist paged callerrorHandling
: 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);
}