RichBlock.paragraph constructor
const
RichBlock.paragraph({
- @JsonKey.new(name: 'type') @Default.new(RichBlockType.paragraph) RichBlockType type,
- @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
A text paragraph, corresponding to the HTML tag <p>.
Implementation
const factory RichBlock.paragraph({
/// Type of the block, always "paragraph"
@JsonKey(name: 'type') @Default(RichBlockType.paragraph) RichBlockType type,
/// Text of the block
@JsonKey(name: 'text') @RichTextConverter() required RichText text,
}) = RichBlockParagraph;