InputRichBlock.paragraph constructor

const InputRichBlock.paragraph({
  1. @JsonKey.new(name: 'type') @Default.new(RichBlockType.paragraph) RichBlockType type,
  2. @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
})

A text paragraph, corresponding to the HTML tag <p>.

Implementation

const factory InputRichBlock.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,
}) = InputRichBlockParagraph;