ListTable constructor
const
ListTable({
- Key? key,
- TableBorder? tableBorder,
- required int colCount,
- Map<
int, double> ? colFraction, - ScrollController? controller,
- bool allowColumnDragging = false,
- List<
int> ? columnIndexMapping, - ColumnIndexMappingCallback? onColumnIndexMappingChanged,
- required ListTableHeader header,
- required List<
ListTableRow> rows, - 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,
);