Paragraph.newLine constructor

Paragraph.newLine({
  1. Map<String, dynamic>? blockAttributes,
})

Implementation

factory Paragraph.newLine({Map<String, dynamic>? blockAttributes}) {
  return Paragraph(
    lines: <Line>[
      Line.newLine(),
    ],
    blockAttributes: blockAttributes,
    type: ParagraphType.lineBreak,
  )..seal();
}