The function that will be called when user taps on the button.
The onPressed parameter must not be null.
The onPressed function is called with the progress in percentage.
final Function(double) onPressed;