LazyDataTable class
Create a lazily loaded data table.
The table is columns by rows big.
The topHeaderBuilder, leftHeaderBuilder, rightHeaderBuiler
and bottomHeaderBuilder are optional,
and the corner widget should only be given if the two headers next to that corner are given.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- LazyDataTable
Constructors
- LazyDataTable({Key? key, required int columns, required int rows, LazyDataTableDimensions tableDimensions = const LazyDataTableDimensions(), LazyDataTableTheme tableTheme = const LazyDataTableTheme(), Widget topHeaderBuilder(int columnIndex)?, Widget leftHeaderBuilder(int rowIndex)?, Widget rightHeaderBuilder(int rowIndex)?, Widget bottomHeaderBuilder(int columnIndex)?, required Widget dataCellBuilder(int columnIndex, int rowIndex), Widget? topLeftCornerWidget, Widget? topRightCornerWidget, Widget? bottomLeftCornerWidget, Widget? bottomRightCornerWidget})
Properties
- bottomHeaderBuilder → Widget Function(int columnIndex)?
-
The builder function for a bottom header.
final
- bottomLeftCornerWidget → Widget?
-
The widget for the bottom left corner.
final
- bottomRightCornerWidget → Widget?
-
The widget for the bottom right corner.
final
- columns → int
-
The number of columns in the table.
final
- dataCellBuilder → Widget Function(int columnIndex, int rowIndex)
-
The builder function for a data cell.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leftHeaderBuilder → Widget Function(int rowIndex)?
-
The builder function for a left header.
final
- rightHeaderBuilder → Widget Function(int rowIndex)?
-
The builder function for a right header.
final
- rows → int
-
The number of rows in the table.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- table → _LazyDataTableState
-
The state class that contains the table.
final
- tableDimensions → LazyDataTableDimensions
-
The dimensions of the table cells and headers.
final
- tableTheme → LazyDataTableTheme
-
The theme of the table cells and headers.
final
- topHeaderBuilder → Widget Function(int columnIndex)?
-
The builder function for a top header.
final
- topLeftCornerWidget → Widget?
-
The widget for the top left corner.
final
- topRightCornerWidget → Widget?
-
The widget for the top right corner.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _LazyDataTableState -
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.
inherited
-
jumpTo(
double x, double y) → void - Jump the table to the given location.
-
jumpToCell(
int column, int row) → void - Jump the table to the given cell.
-
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}) → 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