DataTableThemeData constructor

const DataTableThemeData(
  1. {Decoration? decoration,
  2. MaterialStateProperty<Color?>? dataRowColor,
  3. @Deprecated('Migrate to use dataRowMinHeight and dataRowMaxHeight instead. ' 'This feature was deprecated after v3.7.0-5.0.pre.') double? dataRowHeight,
  4. double? dataRowMinHeight,
  5. double? dataRowMaxHeight,
  6. TextStyle? dataTextStyle,
  7. MaterialStateProperty<Color?>? headingRowColor,
  8. double? headingRowHeight,
  9. TextStyle? headingTextStyle,
  10. double? horizontalMargin,
  11. double? columnSpacing,
  12. double? dividerThickness,
  13. double? checkboxHorizontalMargin,
  14. MaterialStateProperty<MouseCursor?>? headingCellCursor,
  15. MaterialStateProperty<MouseCursor?>? dataRowCursor}
)

Creates a theme that can be used for ThemeData.dataTableTheme.

Implementation

const DataTableThemeData({
  this.decoration,
  this.dataRowColor,
  @Deprecated(
    'Migrate to use dataRowMinHeight and dataRowMaxHeight instead. '
    'This feature was deprecated after v3.7.0-5.0.pre.',
  )
  double? dataRowHeight,
  double? dataRowMinHeight,
  double? dataRowMaxHeight,
  this.dataTextStyle,
  this.headingRowColor,
  this.headingRowHeight,
  this.headingTextStyle,
  this.horizontalMargin,
  this.columnSpacing,
  this.dividerThickness,
  this.checkboxHorizontalMargin,
  this.headingCellCursor,
  this.dataRowCursor,
}) : assert(dataRowMinHeight == null || dataRowMaxHeight == null || dataRowMaxHeight >= dataRowMinHeight),
     assert(dataRowHeight == null || (dataRowMinHeight == null && dataRowMaxHeight == null),
       'dataRowHeight ($dataRowHeight) must not be set if dataRowMinHeight ($dataRowMinHeight) or dataRowMaxHeight ($dataRowMaxHeight) are set.'),
     dataRowMinHeight = dataRowHeight ?? dataRowMinHeight,
     dataRowMaxHeight = dataRowHeight ?? dataRowMaxHeight;