onTap property

VoidCallback onTap
final

This function will be called when the ball is pressed

Implementation

final VoidCallback onTap;