inBatch method Null safety

FutureOr<void> inBatch(
  1. FutureOr<void> fn(
      )
    )

    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

    FutureOr<void> inBatch(FutureOr<void> Function() fn);