SourceFile.fromString constructor

SourceFile.fromString(String text, { dynamic url })

Creates a new source file from text.

url may be either a String, a Uri, or null.

Implementation

SourceFile.fromString(String text, {url})
    : this.decoded(text.codeUnits, url: url);