RenderTableView constructor
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,
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;
}