onPressed property

dynamic Function(double) onPressed
final

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.

Implementation

final Function(double) onPressed;