wire static method
Retrieve the wired Collapse object from an element. If there is no wired
- Collapse object, a new one will be created.
-
create
- If provided, it will be used for Collapse creation. Otherwise
- the default constructor with no optional parameter value is used.
Implementation
static Collapse? wire(Element element, [Collapse? create()?]) =>
p.wire(element, _name, create ?? (() => Collapse(element)));