Expression.parse constructor

Expression.parse(
  1. String contents, {
  2. Object? url,
})

Parses an expression from contents.

If passed, url is the name of the file from which contents comes.

Throws a SassFormatException if parsing fails.

Implementation

factory Expression.parse(String contents, {Object? url}) =>
    ScssParser(contents, url: url).parseExpression().$1;