CssPrinter class

Visitor that produces a formatted string representation of the CSS tree.

Inheritance

Constructors

CssPrinter()

Properties

hashCode int
The hash code for this object.
no setterinherited
prettyPrint bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

emit(String str) → void
Appends str to the output buffer.
emitMediaQueries(List<MediaQuery> queries) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns the output buffer.
override
visitAngleTerm(AngleTerm node) → void
override
visitAttributeSelector(AttributeSelector node) → void
override
visitBinaryExpression(BinaryExpression node) → void
override
visitBorderExpression(BorderExpression node) → dynamic
inherited
visitBoxExpression(BoxExpression node) → dynamic
inherited
visitCalcTerm(CalcTerm node) → void
override
visitCharsetDirective(CharsetDirective node) → void
@charset "charset encoding"
override
visitChTerm(ChTerm node) → dynamic
inherited
visitClassSelector(ClassSelector node) → void
override
visitCommentDefinition(CommentDefinition node) → void
override
visitContentDirective(ContentDirective node) → void
override
visitCssComment(CssComment node) → void
override
visitDartStyleExpression(DartStyleExpression node) → void
override
visitDeclaration(Declaration node) → void
override
visitDeclarationGroup(DeclarationGroup node) → void
override
visitDirective(Directive node) → dynamic
inherited
visitDocumentDirective(DocumentDirective node) → void
override
visitElementSelector(ElementSelector node) → void
override
visitEmTerm(EmTerm node) → void
override
visitExpressions(Expressions node) → void
override
visitExtendDeclaration(ExtendDeclaration node) → void
override
visitExTerm(ExTerm node) → void
override
visitFontExpression(FontExpression node) → dynamic
inherited
visitFontFaceDirective(FontFaceDirective node) → void
override
visitFractionTerm(FractionTerm node) → void
override
visitFreqTerm(FreqTerm node) → void
override
visitFunctionTerm(FunctionTerm node) → void
override
visitGroupTerm(GroupTerm node) → void
override
visitHeightExpression(HeightExpression node) → dynamic
inherited
visitHexColorTerm(HexColorTerm node) → void
override
visitHostDirective(HostDirective node) → void
override
visitIdentifier(Identifier node) → void
override
visitIdSelector(IdSelector node) → void
override
visitIE8Term(IE8Term node) → void
override
visitImportDirective(ImportDirective node) → void
override
visitIncludeDirective(IncludeDirective node, [bool topLevel = true]) → void
Added optional newLine for handling @include at top-level vs/ inside of a declaration group.
override
visitIncludeMixinAtDeclaration(IncludeMixinAtDeclaration node) → void
override
visitItemTerm(ItemTerm node) → void
override
visitKeyFrameBlock(KeyFrameBlock node) → void
override
visitKeyFrameDirective(KeyFrameDirective node) → void
override
visitLengthTerm(LengthTerm node) → void
override
visitLiteralTerm(LiteralTerm node) → void
override
visitMarginExpression(MarginExpression node) → dynamic
inherited
visitMarginGroup(MarginGroup node) → void
override
visitMediaDirective(MediaDirective node) → void
override
visitMediaExpression(MediaExpression node) → void
override
visitMediaQuery(MediaQuery query) → void
override
visitMixinDeclarationDirective(MixinDeclarationDirective node) → void
override
visitMixinDefinition(MixinDefinition node) → dynamic
inherited
visitMixinRulesetDirective(MixinRulesetDirective node) → void
override
visitNamespaceDirective(NamespaceDirective node) → void
override
visitNamespaceSelector(NamespaceSelector node) → void
override
visitNegation(Negation node) → dynamic
inherited
visitNegationSelector(NegationSelector node) → void
override
visitNoOp(NoOp node) → dynamic
inherited
visitNumberTerm(NumberTerm node) → void
override
visitOperatorComma(OperatorComma node) → void
override
visitOperatorMinus(OperatorMinus node) → void
override
visitOperatorPlus(OperatorPlus node) → void
override
visitOperatorSlash(OperatorSlash node) → void
override
visitPaddingExpression(PaddingExpression node) → dynamic
inherited
visitPageDirective(PageDirective node) → void
@page : pseudoPage { decls }
override
visitPercentageTerm(PercentageTerm node) → void
override
visitPseudoClassFunctionSelector(PseudoClassFunctionSelector node) → void
override
visitPseudoClassSelector(PseudoClassSelector node) → void
override
visitPseudoElementFunctionSelector(PseudoElementFunctionSelector node) → void
override
visitPseudoElementSelector(PseudoElementSelector node) → void
override
visitRemTerm(RemTerm node) → dynamic
inherited
visitResolutionTerm(ResolutionTerm node) → void
override
visitRuleSet(RuleSet node) → void
override
visitSelector(Selector node) → dynamic
inherited
visitSelectorExpression(SelectorExpression node) → void
override
visitSelectorGroup(SelectorGroup node) → void
override
visitSimpleSelector(SimpleSelector node) → void
override
visitSimpleSelectorSequence(SimpleSelectorSequence node) → void
override
visitStyleSheet(StyleSheet ss) → dynamic
inherited
visitStyletDirective(StyletDirective node) → void
override
visitSupportsConditionInParens(SupportsConditionInParens node) → void
override
visitSupportsConjunction(SupportsConjunction node) → void
override
visitSupportsDirective(SupportsDirective node) → void
override
visitSupportsDisjunction(SupportsDisjunction node) → void
override
visitSupportsNegation(SupportsNegation node) → void
override
visitThisOperator(ThisOperator node) → dynamic
inherited
visitTimeTerm(TimeTerm node) → void
override
visitTopLevelProduction(TopLevelProduction node) → dynamic
inherited
visitTree(StyleSheet tree, {bool pretty = false}) → void
Walk the tree Stylesheet. pretty if true emits line breaks, extra spaces, friendly property values, etc., if false emits compacted output.
override
visitUnaryExpression(UnaryExpression node) → void
override
visitUnicodeRangeTerm(UnicodeRangeTerm node) → void
override
visitUnitTerm(UnitTerm node) → void
override
visitUriTerm(UriTerm node) → void
override
visitVarDefinition(VarDefinition node) → void
override
visitVarDefinitionDirective(VarDefinitionDirective node) → void
override
visitVarUsage(VarUsage node) → void
override
visitViewportDirective(ViewportDirective node) → void
override
visitViewportTerm(ViewportTerm node) → void
override
visitWidthExpression(WidthExpression node) → dynamic
inherited
visitWildcard(Wildcard node) → void
override

Operators

operator ==(Object other) bool
The equality operator.
inherited