findFirstParagraph function

Paragraph? findFirstParagraph(
  1. FNode node
)

Returns the first Paragraph child of node, or null if none.

Implementation

Paragraph? findFirstParagraph(FNode node) {
  for (final c in childrenOf(node)) {
    if (c is Paragraph) return c;
  }
  return null;
}