Stylesheet.parseSass constructor

Stylesheet.parseSass(
  1. String contents, {
  2. Object? url,
  3. Logger? logger,
})

Parses an indented-syntax stylesheet from contents.

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

Throws a SassFormatException if parsing fails.

Implementation

factory Stylesheet.parseSass(String contents,
        {Object? url, Logger? logger}) =>
    SassParser(contents, url: url, logger: logger).parse();