readAsync<T> method
Create an asynchronous read transaction.
The code inside the callback will be executed in a separate isolate.
Check out the read method for more information.
Implementation
Future<T> readAsync<T>(
T Function(DatabaseUniverse databaseUniverse) callback, {
String? debugName,
}) {
return readAsyncWith(
null,
(databaseUniverse, _) {
return callback(databaseUniverse);
},
debugName: debugName,
);
}