onTap property

VoidCallback? onTap
getter/setter pair

The callback when the button is tapped.

Implementation

VoidCallback? onTap;