nextLine property

LineNode? get nextLine

Returns next LineNode or null if this is the last line in the document.

Implementation

LineNode? get nextLine {
  if (isLast) {
    if (parent is BlockNode) {
      if (parent!.isLast) return null;
      LineNode? line = (parent!.next is BlockNode)
          ? (parent!.next as BlockNode).first as LineNode?
          : parent!.next as LineNode?;
      return line;
    } else {
      return null;
    }
  } else {
    LineNode? line = (next is BlockNode)
        ? (next as BlockNode).first as LineNode?
        : next as LineNode?;
    return line;
  }
}