onPressed property

VoidCallback onPressed
final

The event to be fired when the user press the item

Implementation

final VoidCallback onPressed;