DataTablePlus constructor
DataTablePlus({
- Key? key,
- required List<
DataColumn> columns, - int? sortColumnIndex,
- bool sortAscending = true,
- ValueSetter<
bool?> ? onSelectAll, - Decoration? decoration,
- MaterialStateProperty<
Color?> ? dataRowColor, - double? dataRowHeight,
- TextStyle? dataTextStyle,
- MaterialStateProperty<
Color?> ? headingRowColor, - double? headingRowHeight,
- TextStyle? headingTextStyle,
- double? horizontalMargin,
- double? bottomMargin,
- double? columnSpacing,
- bool showCheckboxColumn = true,
- bool showBottomBorder = false,
- double? dividerThickness,
- ScrollController? scrollController,
- required List<
DataRow> rows, - Map<
int, TableColumnWidth> ? tableColumnsWidth, - List<
CustomRow> ? customRows, - bool showCheckboxSelectAll = true,
Implementation
DataTablePlus(
{Key? key,
required List<DataColumn> columns,
int? sortColumnIndex,
bool sortAscending = true,
ValueSetter<bool?>? onSelectAll,
Decoration? decoration,
MaterialStateProperty<Color?>? dataRowColor,
double? dataRowHeight,
TextStyle? dataTextStyle,
MaterialStateProperty<Color?>? headingRowColor,
double? headingRowHeight,
TextStyle? headingTextStyle,
double? horizontalMargin,
this.bottomMargin,
double? columnSpacing,
bool showCheckboxColumn = true,
bool showBottomBorder = false,
double? dividerThickness,
this.scrollController,
required List<DataRow> rows,
this.tableColumnsWidth,
this.customRows,
this.showCheckboxSelectAll = true})
: super(
key: key,
columns: columns,
sortColumnIndex: sortColumnIndex,
sortAscending: sortAscending,
onSelectAll: onSelectAll,
decoration: decoration,
dataRowColor: dataRowColor,
dataRowHeight: dataRowHeight,
dataTextStyle: dataTextStyle,
headingRowColor: headingRowColor,
headingRowHeight: headingRowHeight,
headingTextStyle: headingTextStyle,
horizontalMargin: horizontalMargin,
columnSpacing: columnSpacing,
showCheckboxColumn: showCheckboxColumn,
showBottomBorder: showBottomBorder,
dividerThickness: dividerThickness,
rows: rows);