TextDocument.fromParsedLines constructor

TextDocument.fromParsedLines(
  1. List<List<String>> lines, {
  2. 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,
  );
}