onTap property

VoidCallback onTap
final

Called when the button is tapped and enabled is true.

Implementation

final VoidCallback onTap;