wire<T> function

T wire <T>(
  1. Element element,
  2. String name,
  3. T create(
      )
    )

    Load a component from Element data space if available, otherwise create one.

    Implementation

    T wire<T>(Element element, String name, T create()) =>
         ($(element).data.get(name) as T) ?? create();