writeLock<T> abstract method
Takes a global lock, without starting a transaction.
In most cases, writeTransaction should be used instead.
The lock applies to all SqliteConnection instances for a SqliteDatabase. Locks for separate SqliteDatabase instances on the same database file may be held concurrently.
Implementation
Future<T> writeLock<T>(Future<T> Function(SqliteWriteContext tx) callback,
{Duration? lockTimeout, String? debugContext});