RichBlock.document constructor
const
RichBlock.document({
- @JsonKey.new(name: 'type') @Default.new(RichBlockType.document) RichBlockType type,
- @JsonKey.new(name: 'document') required Document document,
- @JsonKey.new(name: 'caption') RichBlockCaption? caption,
A block with a general file, corresponding to the custom HTML tag <tg-document>.
Implementation
const factory RichBlock.document({
/// Type of the block, always "document"
@JsonKey(name: 'type') @Default(RichBlockType.document) RichBlockType type,
/// The document
@JsonKey(name: 'document') required Document document,
/// Optional. Caption of the block
@JsonKey(name: 'caption') RichBlockCaption? caption,
}) = RichBlockDocument;