ReportMaker constructor

const ReportMaker({
  1. Key? key,
  2. double cellWidth = 100,
  3. double bodyCellHeight = 35,
  4. double headerHeight = 30,
  5. double textSize = 12,
  6. double headerTextSize = 13,
  7. required List<HeaderCell> headers,
  8. required List<SubHeaderCell> subHeaders,
  9. required List<ReportCell> leftColumn,
  10. required List<List<ReportCell>> tableData,
  11. String stickyHeaderLabel = "Header",
  12. Color stickyHeaderBackgroundColor = Colors.blue,
  13. Color stickyHeaderForegroundColor = Colors.white,
  14. bool enableDownload = true,
  15. DownloadSuccessCallback? onDownloadCompleted,
  16. ReportController? controller,
})

Implementation

const ReportMaker({
  super.key,
  this.cellWidth = 100,
  this.bodyCellHeight = 35,
  this.headerHeight = 30,
  this.textSize = 12,
  this.headerTextSize = 13,
  required this.headers,
  required this.subHeaders,
  required this.leftColumn,
  required this.tableData,
  this.stickyHeaderLabel = "Header",
  this.stickyHeaderBackgroundColor = Colors.blue,
  this.stickyHeaderForegroundColor = Colors.white,
  this.enableDownload = true,
  this.onDownloadCompleted,
  this.controller, // <-- Added to constructor
});