RichBlock.pullquote constructor
const
RichBlock.pullquote({
- @JsonKey.new(name: 'type') @Default.new(RichBlockType.pullquote) RichBlockType type,
- @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
- @JsonKey.new(name: 'credit') @RichTextConverter() RichText? credit,
A quotation with centered text, loosely corresponding to the HTML tag
Implementation
const factory RichBlock.pullquote({
/// Type of the block, always "pullquote"
@JsonKey(name: 'type') @Default(RichBlockType.pullquote) RichBlockType type,
/// Text of the block
@JsonKey(name: 'text') @RichTextConverter() required RichText text,
/// Optional. Credit of the block
@JsonKey(name: 'credit') @RichTextConverter() RichText? credit,
}) = RichBlockPullQuotation;