onPressed property

VoidCallback? onPressed
final

Called when this button is pressed.

Implementation

final VoidCallback? onPressed;