reportOperationProgress method

void reportOperationProgress(
  1. String operationName,
  2. int completed,
  3. int total,
  4. double percentage,
)

Reports progress of a batch operation.

Calls the operation progress callback if one is set.

operationName The name of the operation in progress.

completed Number of items completed.

total Total number of items to process.

percentage Percentage completion from 0 to 100.

Implementation

void reportOperationProgress(
  String operationName,
  int completed,
  int total,
  double percentage,
) {
  if (_onOperationProgress != null) {
    _onOperationProgress(operationName, completed, total, percentage);
  }
}