onClick method

void onClick(
  1. Event e
)

Implementation

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