triggerBuilder property
A builder for the trigger widget that provides access to the menu toggle callback.
Use this when your trigger widget handles its own interactions (e.g., a GlassButton or IconButton).
Example:
GlassMenu(
triggerBuilder: (context, toggle) => GlassButton(
onTap: toggle,
child: Text('Open'),
),
...
)
Implementation
final Widget Function(BuildContext context, VoidCallback toggleMenu)?
triggerBuilder;