onTap property

VoidCallback onTap
final

The callback function that is invoked when the button is pressed.

This is required to define the action when the floating button is tapped.

Implementation

final VoidCallback onTap;