Paragraph.text constructor
Paragraph.text(
- String content, {
- TextAnnotations? annotations,
- List<
Block> children = const [],
Paragraph constructor with a single Text
instance as content.
This constructor should receive the content
as a single String.
Can also receive the annotations
of the single Text
element and the children
of this block.
Implementation
Paragraph.text(
String content, {
TextAnnotations? annotations,
List<Block> children: const [],
}) : this._content = [Text(content, annotations: annotations)],
this._children = children;