UIComponentGenerator<C extends UIComponent> constructor

UIComponentGenerator<C extends UIComponent>(
  1. String tag,
  2. String generatedTag,
  3. String componentClass,
  4. String componentStyle,
  5. UIComponentInstantiator<C> instantiator,
  6. Iterable<UIComponentAttributeHandler<UIComponent, dynamic>> attributes, {
  7. bool hasChildrenElements = true,
  8. bool usesContentHolder = true,
  9. 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))),
     );