RichBlock.expandableBlockquote constructor

const RichBlock.expandableBlockquote({
  1. @JsonKey.new(name: 'type') @Default.new(RichBlockType.expandableBlockquote) RichBlockType type,
  2. @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
  3. @JsonKey.new(name: 'credit') @RichTextConverter() RichText? credit,
})

A block quotation, corresponding to the HTML tag <blockquote> with custom attribute "expandable".

Implementation

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

  /// Content of the block
  @JsonKey(name: 'text') @RichTextConverter() required RichText text,

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