ListTable constructor

const ListTable({
  1. Key? key,
  2. TableBorder? tableBorder,
  3. required int colCount,
  4. Map<int, double>? colFraction,
  5. ScrollController? controller,
  6. bool allowColumnDragging = false,
  7. List<int>? columnIndexMapping,
  8. ColumnIndexMappingCallback? onColumnIndexMappingChanged,
  9. required ListTableHeader header,
  10. required List<ListTableRow> rows,
  11. EdgeInsetsGeometry? margin,
})

Creates a ListTable.

Implementation

const ListTable({
  super.key,
  this.tableBorder,
  required this.colCount,
  this.colFraction,
  this.controller,
  this.allowColumnDragging = false,
  this.columnIndexMapping,
  this.onColumnIndexMappingChanged,
  required this.header,
  required this.rows,
  this.margin,
})  : assert(colCount > 0),
      assert(
        !allowColumnDragging ||
            columnIndexMapping == null ||
            columnIndexMapping.length == colCount,
      );