CustomStickyHeadersTable constructor

CustomStickyHeadersTable(
  1. {dynamic key,
  2. @required int columnsLength,
  3. @required int rowsLength,
  4. dynamic legendCell: const Text(' '),
  5. @required dynamic columnsTitleBuilder(
    1. int colulmnIndex
    ),
  6. @required dynamic contentCellBuilder(
    1. int columnIndex,
    2. int rowIndex
    ),
  7. CellDimensions cellDimensions: CellDimensions.base,
  8. dynamic cellFit: BoxFit.scaleDown}
)

Implementation

CustomStickyHeadersTable({
  Key key,

  /// Number of Columns (for content only)
  @required this.columnsLength,

  /// Number of Rows (for content only)
  @required this.rowsLength,

  /// Title for Top Left cell (always visible)
  this.legendCell = const Text(' '),

  /// Builder for column titles. Takes index of content column as parameter
  /// and returns String for column title
  @required this.columnsTitleBuilder,

  /// Builder for row titles. Takes index of content row as parameter
  /// and returns String for row title
  //@required this.rowsTitleBuilder,

  /// Builder for content cell. Takes index for content column first,
  /// index for content row second and returns String for cell
  @required this.contentCellBuilder,

  /// Table cell dimensions
  this.cellDimensions = CellDimensions.base,

  /// Type of fit for content
  this.cellFit = BoxFit.scaleDown,
}) : super(key: key) {
  assert(columnsLength != null);
  assert(rowsLength != null);
  assert(columnsTitleBuilder != null);
  //assert(rowsTitleBuilder != null);
  assert(contentCellBuilder != null);
}