wire static method

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

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

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

Implementation

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