reportOperationProgress method
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);
}
}