onTap property

VoidCallback onTap
final

The callback function to be called when the button is pressed.

Implementation

final VoidCallback onTap;