DataTablePlus constructor

DataTablePlus({
  1. Key? key,
  2. required List<DataColumn> columns,
  3. int? sortColumnIndex,
  4. bool sortAscending = true,
  5. ValueSetter<bool?>? onSelectAll,
  6. Decoration? decoration,
  7. MaterialStateProperty<Color?>? dataRowColor,
  8. double? dataRowHeight,
  9. TextStyle? dataTextStyle,
  10. MaterialStateProperty<Color?>? headingRowColor,
  11. double? headingRowHeight,
  12. TextStyle? headingTextStyle,
  13. double? horizontalMargin,
  14. double? bottomMargin,
  15. double? columnSpacing,
  16. bool showCheckboxColumn = true,
  17. bool showBottomBorder = false,
  18. double? dividerThickness,
  19. ScrollController? scrollController,
  20. required List<DataRow> rows,
  21. Map<int, TableColumnWidth>? tableColumnsWidth,
  22. List<CustomRow>? customRows,
  23. 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);