onFabPressed property

VoidCallback? onFabPressed
final

Called when the FAB is pressed. When null and a default FAB is built, the FAB toggles whole-pill expand. When set, it is invoked in addition to the expand toggle (for default FAB) or alone (custom floatingActionButton that does not wire expand — keep expanded true for always-open pill).

Implementation

final VoidCallback? onFabPressed;