getLoadingProgress method
Returns the loading progress between 0 (min) and 1 (max).
Implementation
double? getLoadingProgress() {
if (_loadingStatus != LoadingStatus.LOADING) {
return null;
}
if (initialBarcodes.isEmpty) {
return 1;
}
return scores.length / initialBarcodes.length;
}