onPressed property

VoidCallback onPressed
final

The callback that is called when the item is tapped.

This attribute must not be null.

Implementation

final VoidCallback onPressed