ProgressBarFormatter typedef
A function to format a progress bar string.
current
is the current progress value.
total
is the total progress value.
progress
is the ratio of current : total in the form of a double between 0 and 1.
elapsed
is the elapsed time.
Implementation
typedef ProgressBarFormatter = String Function(
int current,
int total,
double progress,
Duration elapsed,
);