RichBlock.table constructor

const RichBlock.table({
  1. @JsonKey.new(name: 'type') @Default.new(RichBlockType.table) RichBlockType type,
  2. @JsonKey.new(name: 'cells') required List<List<RichBlockTableCell>> cells,
  3. @JsonKey.new(name: 'is_bordered') bool? isBordered,
  4. @JsonKey.new(name: 'is_striped') bool? isStriped,
  5. @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;