SourceFile.decoded constructor

SourceFile.decoded(
  1. Iterable<int> decodedChars, {
  2. Object? url,
})

Creates a new source file from a list of decoded code units.

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

Currently, if decodedChars contains characters larger than 0xFFFF, they'll be treated as single characters rather than being split into surrogate pairs. This behavior is deprecated. For forwards-compatibility, callers should only pass in characters less than or equal to 0xFFFF.

Implementation

SourceFile.decoded(Iterable<int> decodedChars, {Object? url})
    : this._fromList(decodedChars.toList(), url: url);