UIComponentGenerator<C extends UIComponent> constructor
UIComponentGenerator<C extends UIComponent> (
- String tag,
- String generatedTag,
- String componentClass,
- String componentStyle,
- UIComponentInstantiator<
C> instantiator, - Iterable<
UIComponentAttributeHandler< attributes, {UIComponent, dynamic> > - bool hasChildrenElements = true,
- bool usesContentHolder = true,
- bool contentAsText = false,
Implementation
UIComponentGenerator(
this.tag,
this.generatedTag,
String componentClass,
String componentStyle,
this.instantiator,
Iterable<UIComponentAttributeHandler> attributes, {
this.hasChildrenElements = true,
this.usesContentHolder = true,
bool contentAsText = false,
}) : componentClass = DOMAttributeValueSet(
componentClass,
DOMAttribute.getAttributeDelimiter('class')!,
DOMAttribute.getAttributeDelimiterPattern('class')!,
),
componentStyle = DOMAttributeValueCSS(componentStyle),
attributes = Map<String, UIComponentAttributeHandler>.fromEntries(
attributes.map(((attr) => MapEntry(attr.name!, attr))),
);