FastTable constructor

const FastTable({
  1. Key? key,
  2. bool fixedHeader = false,
  3. bool fixedFooter = false,
  4. required List<List<TableItem>> rows,
  5. List<TableTitleItem> header = const [],
  6. List<TableTitleItem> footer = const [],
})
 FastTable(
  header: [
    TableTitleItem(title: 'Name', width: 200),
    TableTitleItem(title: 'Age', width: 100),
    TableTitleItem(title: 'City', width: 100),
  ],
  rows: [
  [
    TableItem(title: 'John'),
    TableItem(title: '30'),
    TableItem(title: 'New York'),
  ],
  [
    TableItem(title: 'John'),
    TableItem(title: '30'),
    TableItem(title: 'New York'),
  ],
  ],
  footer: [
    TableTitleItem(title: 'Name', width: 200),
    TableTitleItem(title: 'Age', width: 100),
    TableTitleItem(title: 'City', width: 100),
  ],
),

Implementation

const FastTable({
  super.key,
  this.fixedHeader = false,
  this.fixedFooter = false,
  required this.rows,
  this.header = const [],
  this.footer = const [],
});