onPressed property

VoidCallback? onPressed
final

Function to call when the button is pressed.

Implementation

final VoidCallback? onPressed;