Paragraph constructor

Paragraph({
  1. required List<Line> lines,
  2. Map<String, dynamic>? blockAttributes,
  3. ParagraphType? type,
})

Constructs a Paragraph instance with required properties.

lines specifies the list of lines within the paragraph.

type is an optional parameter that defines the type of the paragraph.

blockAttributes is an optional map that holds additional attributes for the paragraph block.

Implementation

Paragraph({
  required this.lines,
  this.blockAttributes,
  this.type,
});