onPressed property

VoidCallback? onPressed
final

Called when activated; null disables the action.

Implementation

final VoidCallback? onPressed;