inBatch method Null safety
- FutureOr<
void> fn(
override
Runs a group of database operations in a batch.
Use this when performance bulk write operations like multiple inserts/updates; it saves the overhead of multiple database commits, greatly improving performance.
Implementation
@override
Future<void> inBatch(FutureOr<void> Function() fn);