MatrixSdkDatabase constructor
MatrixSdkDatabase(
- String name, {
- Database? database,
- dynamic idbFactory,
- DatabaseFactory? sqfliteFactory,
- int maxFileSize = 0,
- @Deprecated('Breaks support for web standalone. Use [fileStorageLocation] instead.') dynamic fileStoragePath,
- Uri? fileStorageLocation,
- Duration? deleteFilesAfterDuration,
Implementation
MatrixSdkDatabase(
this.name, {
this.database,
this.idbFactory,
this.sqfliteFactory,
this.maxFileSize = 0,
// TODO : remove deprecated member migration on next major release
@Deprecated(
'Breaks support for web standalone. Use [fileStorageLocation] instead.')
dynamic fileStoragePath,
Uri? fileStorageLocation,
Duration? deleteFilesAfterDuration,
}) {
final legacyPath = fileStoragePath?.path;
this.fileStorageLocation = fileStorageLocation ??
(legacyPath is String ? Uri.tryParse(legacyPath) : null);
this.deleteFilesAfterDuration = deleteFilesAfterDuration;
}