TableCellListDelegate class
A delegate that supplies children for a TableViewport using an explicit two dimensional array.
The children are accessed for each TableVicinity.row and
TableVicinity.column of the TwoDimensionalViewport as
children[vicinity.row][vicinity.column]
.
Unlike the base TwoDimensionalChildBuilderDelegate this delegate does not automatically insert repaint boundaries. Instead, repaint boundaries are controlled by TableViewCell.addRepaintBoundaries.
- Inheritance
-
- Object
- ChangeNotifier
- TwoDimensionalChildDelegate
- TwoDimensionalChildListDelegate
- TableCellListDelegate
- Mixed in types
Constructors
-
TableCellListDelegate({int pinnedColumnCount = 0, int pinnedRowCount = 0, bool addAutomaticKeepAlives = true, required List<
List< cells, required TableSpanBuilder columnBuilder, required TableSpanBuilder rowBuilder})TableViewCell> > - Creates a delegate that supplies children for 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
-
children
→ List<
List< Widget> > -
The widgets to display.
finalinherited
- columnCount → int
-
The number of columns that the table has content for.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- 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.
no setteroverride
- 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 TableCellListDelegate oldDelegate) → bool -
Called whenever a new instance of the child delegate class is
provided.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited