TableCellBuilder typedef

TableCellBuilder = Widget Function(BuildContext context, int rowIndex, int columnIndex, bool hasFocus, bool isRowSelected, bool isRowHighlighted, bool isEditing, bool isRowDisabled)

Signature for a function that renders cells in a ScrollableTableView.

Cell builders are properties of the TableColumn, so each column specifies the cell builder for cells in that column.

The rowSelected argument specifies whether the row is currently selected, as indicated by the TableViewSelectionController that's associated with the table view.

The rowHighlighted argument specifies whether the row is highlighted, typically because the table view allows selection of rows, and a mouse cursor is currently hovering over the row.

The isEditing argument specifies whether row editing is currently active on the specified cell.

See also:

Implementation

typedef TableCellBuilder = Widget Function(
  BuildContext context,
  int rowIndex,
  int columnIndex,
  bool hasFocus,
  bool isRowSelected,
  bool isRowHighlighted,
  bool isEditing,
  bool isRowDisabled,
);