onPressed property

VoidCallback? onPressed
final

Called when the action is pressed.

Implementation

final VoidCallback? onPressed;