copyWith method
SqliteOptions
copyWith({
- WebSqliteOptions? webSqliteOptions,
- bool? profileQueries,
- int? maxReaders,
Creates a new options instance by applying overrides from parameters.
Only non-nullable fields can be changed this way. For other fields, create a new instance manually.
Implementation
SqliteOptions copyWith({
WebSqliteOptions? webSqliteOptions,
bool? profileQueries,
int? maxReaders,
}) {
return SqliteOptions(
journalMode: journalMode,
synchronous: synchronous,
journalSizeLimit: journalSizeLimit,
webSqliteOptions: webSqliteOptions ?? this.webSqliteOptions,
lockTimeout: lockTimeout,
profileQueries: profileQueries ?? this.profileQueries,
maxReaders: maxReaders ?? this.maxReaders,
);
}