getLast method

Paragraph? getLast({
  1. Paragraph orElse()?,
})

Returns the last paragraph into the document.

Implementation

Paragraph? getLast({Paragraph Function()? orElse}) {
  return paragraphs.lastOrNull ?? orElse?.call();
}