YamlExternalScannerState constructor
YamlExternalScannerState({})
Implementation
YamlExternalScannerState({
this.row = 0,
this.column = 0,
this.blockImplicitRow = -1,
this.blockImplicitColumn = -1,
this.blockImplicitHasTab = 0,
List<int>? indentationTypes,
List<int>? indentationLengths,
}) : indentationTypes = indentationTypes ?? <int>[_rootIndent],
indentationLengths = indentationLengths ?? <int>[-1] {
if (this.indentationTypes.isEmpty ||
this.indentationTypes.length != this.indentationLengths.length) {
throw ArgumentError(
'YAML indentation stacks must be non-empty and equal',
);
}
}