RichBlockCaption constructor

const RichBlockCaption({
  1. @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
  2. @JsonKey.new(name: 'credit') @RichTextConverter() RichText? credit,
})

Caption of a rich formatted block.

Implementation

const factory RichBlockCaption({
  /// Block caption
  @JsonKey(name: 'text') @RichTextConverter() required RichText text,

  /// Optional. Block credit which corresponds to the HTML tag <cite>
  @JsonKey(name: 'credit') @RichTextConverter() RichText? credit,
}) = _RichBlockCaption;