TableCellBuilderDelegate class
A delegate that supplies children for a TableViewport on demand using a builder callback.
Unlike the base TwoDimensionalChildBuilderDelegate this delegate does not automatically insert repaint boundaries. Instead, repaint boundaries are controlled by TableViewCell.addRepaintBoundaries.
If the rowCount or columnCount is not provided, the number of rows
and/or columns will be infinite. Returning null from the columnBuilder
and/or rowBuilder
in this case can terminate the number of rows and
columns at the given index.
- Inheritance
-
- Object
- ChangeNotifier
- TwoDimensionalChildDelegate
- TwoDimensionalChildBuilderDelegate
- TableCellBuilderDelegate
- Mixed in types
Constructors
- TableCellBuilderDelegate({int? columnCount, int? rowCount, int pinnedColumnCount = 0, int pinnedRowCount = 0, bool addAutomaticKeepAlives = true, required TableViewCellBuilder cellBuilder, required TableSpanBuilder columnBuilder, required TableSpanBuilder rowBuilder})
- Creates a lazy building delegate to use with a TableView.
Properties
- addAutomaticKeepAlives → bool
-
Whether to wrap each child in an AutomaticKeepAlive.
finalinherited
- addRepaintBoundaries → bool
-
Whether to wrap each child in a RepaintBoundary.
finalinherited
- builder → TwoDimensionalIndexedWidgetBuilder
-
Called to build children on demand.
finalinherited
- columnCount ↔ int?
-
The number of columns that the table has content for.
getter/setter pairoverride-getter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- maxXIndex ↔ int?
-
The maximum ChildVicinity.xIndex for children in the x axis.
getter/setter pairinherited
- maxYIndex ↔ int?
-
The maximum ChildVicinity.yIndex for children in the y axis.
getter/setter pairinherited
- pinnedColumnCount ↔ int
-
The number of columns that are permanently shown on the leading vertical
edge of the viewport.
getter/setter pairoverride-getter
- pinnedRowCount ↔ int
-
The number of rows that are permanently shown on the leading horizontal
edge of the viewport.
getter/setter pairoverride-getter
- rowCount ↔ int?
-
The number of rows that the table has content for.
getter/setter pairoverride-getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
build(
BuildContext context, covariant ChildVicinity vicinity) → Widget? -
Returns the child with the given ChildVicinity, which is described in
terms of x and y indices.
inherited
-
buildColumn(
int index) → TableSpan? -
Builds the TableSpan that describes the column at the provided index.
override
-
buildRow(
int index) → TableSpan? -
Builds the TableSpan that describe the row at the provided index.
override
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
shouldRebuild(
covariant TwoDimensionalChildDelegate oldDelegate) → bool -
Called whenever a new instance of the child delegate class is
provided.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited