onPressed property

dynamic Function() onPressed
final

The function that gets called when the prefix or widget is pressed.

The onPressed function is called when the prefix or suffix widget is pressed.

The onPressed parameter must not be null.

Implementation

final Function() onPressed;