onTap property

VoidCallback onTap
final

The function that is called when the button is pressed

Implementation

final VoidCallback onTap;