source property
Sets the source the popup should be created relative to.
Implementation
@override
set source(PopupSource? source) {
if (source != null) {
super.source = source;
// Set the popup ID on the source for ARIA attributes.
source.popupId = uniqueId;
// This component supports direct control over the [PopupRef] by way
// of the Toggle library. Here, we register the [PopupRef] as a
// [Toggleable] iff [source] uses the library.
if (source is Toggler) {
(source as Toggler).toggleable = _DeferredToggleable(this);
}
}
}