onPressed property

VoidCallback onPressed
final

The function which will be called when the action is pressed

Implementation

final VoidCallback onPressed;