use method

void use ()

Register to use Dropdown component.

Implementation

static void use() {
  if (_registered) return;
  _registered = true;

  $document()
  ..on('click.bs.dropdown.data-api', (QueryEvent e) => _clearMenus())
  ..on('click.bs.dropdown.data-api', (QueryEvent e) => e.stopPropagation(), selector: '.dropdown form')
  ..on('click.bs.dropdown.data-api', _toggleEvent, selector: _toggleSelector)
  ..on('keydown.bs.dropdown.data-api', _keydown, selector: "${_toggleSelector}, [role=menu]");
}