nextLine property

LineNode? 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;
      var line = (parent!.next is BlockNode)
          ? (parent!.next as BlockNode).first
          : parent!.next;
      return line as LineNode?;
    } else {
      return null;
    }
  } else {
    var line = (next is BlockNode) ? (next as BlockNode).first : next;
    return line as LineNode?;
  }
}