call method

FutureOr<void> call(
  1. FutureOr<void> batch(
    1. ModelBatchRef ref,
    2. CollectionBase<TModel> collection
    )
)

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,
  );
}