onTap property

VoidCallback onTap
final

Callback when the button is tapped.

If enabled is false, this callback will not be invoked.

Implementation

final VoidCallback onTap;