onPressed property

VoidCallback? onPressed
finalinherited

onPressed is a void function well be called when the button is pressed.

Implementation

final VoidCallback? onPressed;