wire static method

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

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

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

Implementation

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