BatchCallback typedef

BatchCallback = Future<void> Function(WriteBatch)

The function that FirebaseFirestore.runBatch calls with a new WriteBatch.

Add writes to the batch in the function; FirebaseFirestore.runBatch commits them when the returned future completes.

Implementation

typedef BatchCallback = Future<void> Function(WriteBatch);