t function

XFormsElement t(
  1. String spec, [
  2. List<XFormsElement> children = const []
])

Creates an element from spec (name plus inline attributes) with optional children.

Implementation

XFormsElement t(String spec, [List<XFormsElement> children = const []]) =>
    children.isEmpty
    ? EmptyXFormsElement(_parseName(spec), _parseAttributes(spec))
    : TagXFormsElement(_parseName(spec), _parseAttributes(spec), children);