TextDocument.fromLineTexts constructor
Implementation
TextDocument.fromLineTexts(List<String> lineTexts, {List<int>? lineLengths}) {
final normalizedLineTexts = lineTexts.isEmpty
? const <String>['']
: List<String>.from(lineTexts, growable: false);
_storage = _optimizedStorageFromLineTexts(
normalizedLineTexts,
lineLengths: lineLengths,
revision: 0,
);
}