prepare method

StyledElement prepare(
  1. ExtensionContext context,
  2. List<StyledElement> children
)
inherited

Converts parsed HTML to a StyledElement.

Implementation

StyledElement prepare(
    ExtensionContext context, List<StyledElement> children) {
  return StyledElement(
    node: context.node,
    style: Style(),
    elementClasses: context.classes.toList(),
    elementId: context.id,
    children: children,
    name: context.elementName,
  );
}