onPressed property

VoidCallback? onPressed
final

Callback that is called when the button is pressed. The button is disabled when isEnabled is false, even if onPressed is provided.

Implementation

final VoidCallback? onPressed;