LazyDataTable class

Create a lazily loaded data table.

The table is columns by rows big. The columnHeaderBuilder and rowHeaderBuilder are optional, and when either of those is not given, the corner widget should also not be given.

Inheritance

Constructors

LazyDataTable({Key? key, required int columns, required int rows, LazyDataTableDimensions tableDimensions = const LazyDataTableDimensions(), LazyDataTableTheme tableTheme = const LazyDataTableTheme(), Widget columnHeaderBuilder(int columnIndex)?, Widget rowHeaderBuilder(int rowIndex)?, required Widget dataCellBuilder(int columnIndex, int rowIndex), Widget? cornerWidget})

Properties

columnHeaderBuilder → (Widget Function(int columnIndex)?)
The builder function for a column header.
final
columns int
The number of columns in the table.
final
cornerWidget Widget?
The widget for the upper-left corner.
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
rowHeaderBuilder → (Widget Function(int rowIndex)?)
The builder function for a row 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

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