RichBlock.table constructor
const
RichBlock.table({
- @JsonKey.new(name: 'type') @Default.new(RichBlockType.table) RichBlockType type,
- @JsonKey.new(name: 'cells') required List<
List< cells,RichBlockTableCell> > - @JsonKey.new(name: 'is_bordered') bool? isBordered,
- @JsonKey.new(name: 'is_striped') bool? isStriped,
- @JsonKey.new(name: 'caption') @RichTextConverter() RichText? caption,
A table, corresponding to the HTML tag <table>.
Implementation
const factory RichBlock.table({
/// Type of the block, always "table"
@JsonKey(name: 'type') @Default(RichBlockType.table) RichBlockType type,
/// Cells of the table
@JsonKey(name: 'cells') required List<List<RichBlockTableCell>> cells,
/// Optional. True, if the table has borders
@JsonKey(name: 'is_bordered') bool? isBordered,
/// Optional. True, if the table is striped
@JsonKey(name: 'is_striped') bool? isStriped,
/// Optional. Caption of the table
@JsonKey(name: 'caption') @RichTextConverter() RichText? caption,
}) = RichBlockTable;