RichBlock.blockquote constructor

const RichBlock.blockquote({
  1. @JsonKey.new(name: 'type') @Default.new(RichBlockType.blockquote) RichBlockType type,
  2. @JsonKey.new(name: 'blocks') required List<RichBlock> blocks,
  3. @JsonKey.new(name: 'credit') @RichTextConverter() RichText? credit,
})

A block quotation, corresponding to the HTML tag

.

Implementation

const factory RichBlock.blockquote({
  /// Type of the block, always "blockquote"
  @JsonKey(name: 'type')
  @Default(RichBlockType.blockquote)
  RichBlockType type,

  /// Content of the block
  @JsonKey(name: 'blocks') required List<RichBlock> blocks,

  /// Optional. Credit of the block
  @JsonKey(name: 'credit') @RichTextConverter() RichText? credit,
}) = RichBlockBlockQuotation;