DriftNativeOptions constructor

const DriftNativeOptions({
  1. bool shareAcrossIsolates = false,
  2. bool isolateDebugLog = false,
  3. Future<String> databasePath()?,
  4. Future<Object> databaseDirectory()?,
  5. Future<String?> tempDirectoryPath()?,
  6. void isolateSetup()?,
  7. void setup(
    1. CommonDatabase db
    )?,
})

Create drift options effective when opening drift databases on native platforms.

Implementation

const DriftNativeOptions({
  this.shareAcrossIsolates = false,
  this.isolateDebugLog = false,
  this.databasePath,
  this.databaseDirectory,
  this.tempDirectoryPath,
  this.isolateSetup,
  this.setup,
}) : assert(
        databasePath == null || databaseDirectory == null,
        'databasePath and databaseDirectory must not both be set.',
      );