TextDocument.fromParsedLines constructor
TextDocument.fromParsedLines(
- List<List<String>> lines, {
- bool seedLineGraphemeCaches = true,
})
Implementation
TextDocument.fromParsedLines(
List<List<String>> lines, {
bool seedLineGraphemeCaches = true,
}) {
final parsedLines = lines.isEmpty
? <List<String>>[<String>[]]
: lines.map((line) => List<String>.from(line)).toList(growable: false);
_storage = _storageBuilder.fromParsedLines(
parsedLines,
revision: 0,
seedLineGraphemeCaches: seedLineGraphemeCaches,
);
}