onPressed property

VoidCallback onPressed
final

The callback to be executed when the item is selected.

Implementation

final VoidCallback onPressed;