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).

When fabExpandsToolbar is false, this is the only FAB callback (no expand toggle). If null, the FAB tap is a no-op.

Implementation

final VoidCallback? onFabPressed;