The callback type to get a new text value centered in the progress bar.
typedef OnGetCenterText = Text Function(double);