peekAtDepth method
Implementation
ParsedLine? peekAtDepth(int targetDepth) {
final line = peek();
if (line == null || line.depth < targetDepth) {
return null;
}
if (line.depth == targetDepth) {
return line;
}
return null;
}
ParsedLine? peekAtDepth(int targetDepth) {
final line = peek();
if (line == null || line.depth < targetDepth) {
return null;
}
if (line.depth == targetDepth) {
return line;
}
return null;
}