SqliteCrdtTable constructor

SqliteCrdtTable(
  1. String _path, {
  2. List<int>? encryptionKey,
  3. Duration snapshotInterval = Duration.zero,
})

Creates a table for the database at path, which is opened on the first init. Pass ":memory:" for a transient database; pass an encryptionKey to use SQLCipher on a SQLCipher build of the native library. snapshotInterval sets how often a recovery snapshot is written (Duration.zero, the default, disables it).

Implementation

SqliteCrdtTable(
  this._path, {
  List<int>? encryptionKey,
  Duration snapshotInterval = Duration.zero,
})  : _encryptionKey = encryptionKey == null
          ? null
          : List<int>.unmodifiable(encryptionKey),
      _snapshotInterval = snapshotInterval;