DesignDataTable<R> class
The rows of a DesignTableController's page under a header row, with one tab stop for the rows. The look paints the header cells, the cells, and each row around its cells.
DesignDataTable<String>(controller: controller, headerBuilder: (context, column, sort, states) => Text(column.label), cellBuilder: (context, row, column) => Text(row), rowBuilder: (context, row, cells) => Row(children: cells))
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DesignDataTable
Constructors
-
DesignDataTable({Key? key, required DesignTableController<
R> controller, required DesignTableHeaderBuilder<R> headerBuilder, required Widget cellBuilder(BuildContext context, R row, DesignTableColumn<R> column), required Widget rowBuilder(BuildContext context, DesignTableRow<R> row, List<Widget> cells), Widget headerRowBuilder(BuildContext context, List<Widget> cells)?, bool selectable = true, ValueChanged<R> ? onActivate, String sortedHint(DesignSortDirection direction)?}) -
The table of
controller.const
Properties
-
cellBuilder
→ Widget Function(BuildContext context, R row, DesignTableColumn<
R> column) -
Paints a cell.
final
-
controller
→ DesignTableController<
R> -
The model: the rows, the columns and the table's view of them.
The caller makes it, keeps it across
rebuilds and disposes it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headerBuilder
→ DesignTableHeaderBuilder<
R> -
Paints a header cell.
final
-
headerRowBuilder
→ Widget Function(BuildContext context, List<
Widget> cells)? -
Paints the header row around its cells; null puts them in a row of
equal shares.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onActivate
→ ValueChanged<
R> ? -
A row's Enter, or its press when the table does not select.
final
-
rowBuilder
→ Widget Function(BuildContext context, DesignTableRow<
R> row, List<Widget> cells) -
Paints a row around its cells.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectable → bool
-
Whether a press and Space select rows.
final
- sortedHint → String Function(DesignSortDirection direction)?
-
What a screen reader hears after a sorted header's label; null:
DesignLocalizations.dataTableSortedHint.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< DesignDataTable< R> > -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited