ColorFunc typedef
Function that can be used to dynamically fill the progress bar.
total is the total filled percentage, and current is the current
percentage that is actively being filled with a color.
Implementation
typedef ColorFunc = Color Function(double total, double current);