onClick method
Implementation
void onClick(dom.Event e) {
if (disabled != true &&
options.values.where((option) => option.isNotEmpty).isNotEmpty) {
dropdownVisible = !dropdownVisible;
_changeDetectorRef.markForCheck();
e.preventDefault();
}
}