onTap property

VoidCallback? onTap
final

An optional callback that is called when the button is tapped. If this is not provided, the button will be considered disabled.

Implementation

final VoidCallback? onTap;