RenderTableView constructor

RenderTableView({
  1. required double rowHeight,
  2. required int length,
  3. required List<TableColumn> columns,
  4. required FocusNode focusNode,
  5. bool roundColumnWidthsToWholePixel = false,
  6. TableViewMetricsController? metricsController,
  7. TableViewSelectionController? selectionController,
  8. TableViewSortController? sortController,
  9. TableViewEditorController? editorController,
  10. TableViewRowDisablerController? rowDisabledController,
  11. TargetPlatform? platform,
  12. RowDoubleTapHandler? onDoubleTapRow,
})

Implementation

RenderTableView({
  required double rowHeight,
  required int length,
  required List<TableColumn> columns,
  required FocusNode focusNode,
  bool roundColumnWidthsToWholePixel = false,
  TableViewMetricsController? metricsController,
  TableViewSelectionController? selectionController,
  TableViewSortController? sortController,
  TableViewEditorController? editorController,
  TableViewRowDisablerController? rowDisabledController,
  TargetPlatform? platform,
  RowDoubleTapHandler? onDoubleTapRow,
}) {
  initializeSortListener();
  _editorListener = TableViewEditorListener(
    onEditStarted: _handleEditStarted,
    onEditFinished: _handleEditFinished,
  );
  _rowDisablerListener = TableViewRowDisablerListener(
    onTableViewRowDisabledFilterChanged: _handleRowDisabledFilterChanged,
  );
  this.rowHeight = rowHeight;
  this.length = length;
  this.columns = columns;
  this.focusNode = focusNode;
  this.roundColumnWidthsToWholePixel = roundColumnWidthsToWholePixel;
  this.metricsController = metricsController;
  this.selectionController = selectionController;
  this.sortController = sortController;
  this.editorController = editorController;
  this.rowDisabledController = rowDisabledController;
  this.platform = platform ?? defaultTargetPlatform;
  this.onDoubleTapRow = onDoubleTapRow;
}