CustomStickyHeadersTable constructor
CustomStickyHeadersTable(- {dynamic key,
- @required int columnsLength,
- @required int rowsLength,
- dynamic legendCell: const Text(' '),
- @required dynamic columnsTitleBuilder(
- int colulmnIndex
),
- @required dynamic contentCellBuilder(
- int columnIndex,
- int rowIndex
),
- CellDimensions cellDimensions: CellDimensions.base,
- 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);
}