DriftNativeOptions class final

Options used to open drift databases on native platforms (outside of the web).

Constructors

DriftNativeOptions.new({bool shareAcrossIsolates = false, Future<String> databasePath()?, Future<Object> databaseDirectory()?, Future<String?> tempDirectoryPath()?})
Create drift options effective when opening drift databases on native platforms.
const

Properties

databaseDirectory Future<Object> Function()?
An optional function returning either a string or a Directory that will be used as a directory to store the database.
final
databasePath Future<String> Function()?
An optional callback returning a custom database path to be used by drift.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shareAcrossIsolates bool
Whether two isolates opening a drift database with the name should be connected to a shared database instance.
final
tempDirectoryPath Future<String?> Function()?
An optional callback returning a temporary directory.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited