wire method

Dropdown wire (
  1. Element element,
  2. [Dropdown create(
      )]
    )

    Retrieve the wired Dropdown object from an element. If there is no wired

    • Dropdown object, a new one will be created.
      • create - If provided, it will be used for Dropdown creation. Otherwise
    • the default constructor with no optional parameter value is used.

    Implementation

    static Dropdown wire(Element element, [Dropdown create()]) =>
        p.wire(element, _name, create ?? (() => new Dropdown(element)));