visible property
Implementation
bool get visible => _visible;
Whether the dropdown is visible.
Implementation
@override
set visible(bool value) {
_changeDetector.markForCheck();
super.visible = value;
resetEnteredKeys();
if (value) {
// Ensure that the current active item matches the current value.
// For instance it is cleared on mouse out.
// Note we don't allow deactivation because some teams incorrectly use
// activeItemLabel instead of selectedItemLabel, and this breaks them.
// TODO(google): remove allowDeactivate when client tests are fixed.
_setInitialActiveItem(allowDeactivate: false);
}
}