wire static method

Popover? wire(
  1. Element element,
  2. [Popover? create(
      )?]
    )
    override

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

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

    Implementation

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