RichBlock.pullquote constructor

const RichBlock.pullquote({
  1. @JsonKey.new(name: 'type') @Default.new(RichBlockType.pullquote) RichBlockType type,
  2. @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
  3. @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;