onPressed property

VoidCallback? onPressed
final

Called when the button is pressed.

Implementation

final VoidCallback? onPressed;