onPressed property

VoidCallback? onPressed
final

Action or function that called when button pressed.

Implementation

final VoidCallback? onPressed;