InputRichBlock.expandableBlockquote constructor
const
InputRichBlock.expandableBlockquote({
- @JsonKey.new(name: 'type') @Default.new(RichBlockType.expandableBlockquote) RichBlockType type,
- @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
- @JsonKey.new(name: 'credit') @RichTextConverter() RichText? credit,
A block quotation, corresponding to the HTML tag <blockquote> with custom attribute "expandable".
Implementation
const factory InputRichBlock.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,
}) = InputRichBlockExpandableBlockQuotation;