onPressed property

VoidCallback? onPressed
final

Null disables the item.

Implementation

final VoidCallback? onPressed;