toCssString method

String toCssString({
  1. @internal bool quote = true,
})

Returns a valid CSS representation of this.

Throws a SassScriptException if this can't be represented in plain CSS. Use toString instead to get a string representation even if this isn't valid CSS.

Implementation

//
// Internal-only: If [quote] is `false`, quoted strings are emitted without
// quotes.
String toCssString({@internal bool quote = true}) =>
    serializeValue(this, quote: quote);