const
Widget.dataTable(- {Key? key,
- required List<DataColumn> columns,
- int? sortColumnIndex,
- @Default(true) bool sortAscending,
- Callback? onSelectAll,
- Callback? onDeselectAll,
- Decoration? decoration,
- MaterialStateProperty? dataRowColor,
- double? dataRowHeight,
- TextStyle? dataTextStyle,
- MaterialStateProperty? headingRowColor,
- double? headingRowHeight,
- TextStyle? headingTextStyle,
- double? horizontalMargin,
- double? columnSpacing,
- @Default(true) bool showCheckboxColumn,
- @Default(false) bool showBottomBorder,
- double? dividerThickness,
- required List<DataRow> rows,
- double? checkboxHorizontalMargin,
- TableBorder? border,
- @Default(Clip.none) Clip clipBehavior}
)
Implementation
const factory Widget.dataTable({
Key? key,
required List<DataColumn> columns,
int? sortColumnIndex,
@Default(true) bool sortAscending,
Callback? onSelectAll,
Callback? onDeselectAll,
Decoration? decoration,
MaterialStateProperty? dataRowColor,
double? dataRowHeight,
TextStyle? dataTextStyle,
MaterialStateProperty? headingRowColor,
double? headingRowHeight,
TextStyle? headingTextStyle,
double? horizontalMargin,
double? columnSpacing,
@Default(true) bool showCheckboxColumn,
@Default(false) bool showBottomBorder,
double? dividerThickness,
required List<DataRow> rows,
double? checkboxHorizontalMargin,
TableBorder? border,
@Default(Clip.none) Clip clipBehavior,
}) = DataTable;