onTap property

VoidCallback? onTap
final

A callback to call whenever the user taps on the button.

Typically used to setState on selected.

Implementation

final VoidCallback? onTap;