onPressed property

VoidCallback? onPressed
final

Called when user press this button.

Implementation

final VoidCallback? onPressed;