FFDataTable constructor

FFDataTable({
  1. int? numColumns,
  2. FFColor? headerRowColor,
  3. double? headerRowHeight,
  4. FFColor? rowColor,
  5. double? rowHeight,
  6. FFBorderRadius? borderRadius,
  7. double? dividerThickness,
  8. bool? showBottomBorder,
  9. bool? hasHorizontalScroll,
  10. FFDimensions? dimensions,
  11. double? columnSpacing,
})

Implementation

factory FFDataTable({
  $core.int? numColumns,
  FFColor? headerRowColor,
  $core.double? headerRowHeight,
  FFColor? rowColor,
  $core.double? rowHeight,
  FFBorderRadius? borderRadius,
  $core.double? dividerThickness,
  $core.bool? showBottomBorder,
  $core.bool? hasHorizontalScroll,
  FFDimensions? dimensions,
  $core.double? columnSpacing,
}) {
  final result = create();
  if (numColumns != null) result.numColumns = numColumns;
  if (headerRowColor != null) result.headerRowColor = headerRowColor;
  if (headerRowHeight != null) result.headerRowHeight = headerRowHeight;
  if (rowColor != null) result.rowColor = rowColor;
  if (rowHeight != null) result.rowHeight = rowHeight;
  if (borderRadius != null) result.borderRadius = borderRadius;
  if (dividerThickness != null) result.dividerThickness = dividerThickness;
  if (showBottomBorder != null) result.showBottomBorder = showBottomBorder;
  if (hasHorizontalScroll != null)
    result.hasHorizontalScroll = hasHorizontalScroll;
  if (dimensions != null) result.dimensions = dimensions;
  if (columnSpacing != null) result.columnSpacing = columnSpacing;
  return result;
}