TxMode enum Null safety

Configure transaction mode. Used with Store.runInTransaction().

Constants

read → const TxMode

Read only transaction - trying to execute a write operation results in an error. This is useful if you want to group many reads inside a single transaction, e.g. to improve performance or to get a consistent view of the data across multiple operations.

const TxMode(0)
values → const List<TxMode>

A constant List of the values in this enum, in order of their declaration.

const List<TxMode>
write → const TxMode

Read/Write transaction. There can be only a single write transaction at any time - it holds a lock on the database. Compared to read transaction, read/write transactions have much higher "cost", because they need to write data to the disk at the end.

const TxMode(1)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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