controller property

GlassPopoverController? controller
final

Opens and closes the popover from outside its trigger (GlassPopoverController.open / GlassPopoverController.close / GlassPopoverController.toggle) — the same seam GlassMenu.controller gives a menu, for a popover whose host decides when it appears (state-driven UI, a guided tour, a section opened from elsewhere).

For a purely controller-driven anchor that should not intercept taps or announce button semantics on its own, pass triggerBuilder: (_, _) => anchor instead of trigger.

One controller drives one mounted GlassPopover at a time.

Implementation

final GlassPopoverController? controller;