copyWith method

SqliteOptions copyWith({
  1. WebSqliteOptions? webSqliteOptions,
  2. bool? profileQueries,
  3. 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,
  );
}