onTap property

VoidCallback? onTap
final

A callback that is called whenever user taps the headerContent. Useful in cases when tapping expands the panel.

If headerContent itself contains a tappable widget, it will take precedence.

Implementation

final VoidCallback? onTap;