InputRichBlock.footer constructor

const InputRichBlock.footer({
  1. @JsonKey.new(name: 'type') @Default.new(RichBlockType.footer) RichBlockType type,
  2. @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
})

A footer, corresponding to the HTML tag <footer>.

Implementation

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

  /// Text of the block
  @JsonKey(name: 'text') @RichTextConverter() required RichText text,
}) = InputRichBlockFooter;