call method
Pass batch
as a callback to execute the batch.
batch
をコールバックとして渡しバッチを実行します。
Implementation
FutureOr<void> call(
FutureOr<void> Function(
ModelBatchRef ref,
CollectionBase<TModel> collection,
) batch,
) {
return collection.modelQuery.adapter.runBatch(
(ref) {
return batch(ref, collection);
},
splitLength,
);
}