InputRichBlock.blockquote constructor

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

A block quotation, corresponding to the HTML tag <blockquote>.

Implementation

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

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

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